狗属哺乳动物,且它的属性有品种之分(在哺乳类基础上增加品种数据成员),叫声区别于其他动物(输出“Woof!”),还会摇尾巴(增加成员函数,输出“Tail wag

上传者: 43199798 | 上传时间: 2022-12-06 15:11:02 | 文件大小: 208KB | 文件类型: RAR
狗属哺乳动物,且它的属性有品种之分(在哺乳类基础上增加品种数据成员),叫声区别于其他动物(输出“Woof!”),还会摇尾巴(增加成员函数,输出“Tail wagging…”),乞讨食物(增加成员函数,输出“begging for food…”)。 猫、马、猪也属于哺乳动物,其叫声分别为:“Meow!”,“Winnie!”,“Oink!”。 编程分别使各个动物表现为不一样的行为。要求将所有的动物类放置于animal.mammal包下。 定义两个新的类,表示宠物猫和宠物狗。要求:这两个类能输出宠物所属的主人,价格等信息;将这两个类放置于animal.mammal.pet包下。

文件下载

资源详情

[{"title":"( 27 个子文件 208KB ) 狗属哺乳动物,且它的属性有品种之分(在哺乳类基础上增加品种数据成员),叫声区别于其他动物(输出“Woof!”),还会摇尾巴(增加成员函数,输出“Tail wag","children":[{"title":"Test5","children":[{"title":"JavaApplication5","children":[{"title":"build.xml <span style='color:#111;'> 3.55KB </span>","children":null,"spread":false},{"title":"manifest.mf <span style='color:#111;'> 85B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"animal","children":[{"title":"mammal","children":[{"title":"cats.java <span style='color:#111;'> 514B </span>","children":null,"spread":false},{"title":"Mammal.java <span style='color:#111;'> 940B </span>","children":null,"spread":false},{"title":"JavaApplication5.java <span style='color:#111;'> 1.04KB </span>","children":null,"spread":false},{"title":"pigs.java <span style='color:#111;'> 514B </span>","children":null,"spread":false},{"title":"horses.java <span style='color:#111;'> 512B </span>","children":null,"spread":false},{"title":"pet","children":[{"title":"pet_cats.java <span style='color:#111;'> 664B </span>","children":null,"spread":false},{"title":"pet_dogs.java <span style='color:#111;'> 665B </span>","children":null,"spread":false}],"spread":true},{"title":"dogs.java <span style='color:#111;'> 971B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"nbproject","children":[{"title":"build-impl.xml <span style='color:#111;'> 78.04KB </span>","children":null,"spread":false},{"title":"private","children":[{"title":"private.properties <span style='color:#111;'> 111B </span>","children":null,"spread":false}],"spread":true},{"title":"project.xml <span style='color:#111;'> 524B </span>","children":null,"spread":false},{"title":"genfiles.properties <span style='color:#111;'> 475B </span>","children":null,"spread":false},{"title":"project.properties <span style='color:#111;'> 2.44KB </span>","children":null,"spread":false}],"spread":true},{"title":"build","children":[{"title":"classes","children":[{"title":".netbeans_automatic_build <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":".netbeans_update_resources <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"animal","children":[{"title":"mammal","children":[{"title":"cats.class <span style='color:#111;'> 488B </span>","children":null,"spread":false},{"title":"dogs.class <span style='color:#111;'> 728B </span>","children":null,"spread":false},{"title":"horses.class <span style='color:#111;'> 496B </span>","children":null,"spread":false},{"title":"Mammal.class <span style='color:#111;'> 1.12KB </span>","children":null,"spread":false},{"title":"pigs.class <span style='color:#111;'> 488B </span>","children":null,"spread":false},{"title":"JavaApplication5.class <span style='color:#111;'> 1.46KB </span>","children":null,"spread":false},{"title":"pet","children":[{"title":"pet_cats.class <span style='color:#111;'> 1.26KB </span>","children":null,"spread":false},{"title":"pet_dogs.class <span style='color:#111;'> 1.26KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"说明.txt <span style='color:#111;'> 21B </span>","children":null,"spread":false},{"title":"实验报告.docx <span style='color:#111;'> 187.61KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明