3-java

所属分类:Java编程
开发工具:Java
文件大小:2KB
下载次数:6
上传日期:2012-09-16 15:46:00
上 传 者fengchen1122
说明:  宠物商店, 1. 所有宠物都具有:名字,颜色和年龄 三个属性。宠物建议命名成Pet 2. 宠物商店中可以增加宠物、根据名字、颜色、年龄查询宠物。宠物商店建议命名成PetStore 3. 考虑实现方便,目前只有两种宠物,Cat 和 Dog ,后续会继续增加宠物类别,但是Cat和Dog具体有多少只,需要用户决定数量; 4. 宠物商店中对宠物的存放结构必须使用数组(具体数组多大,也就是多少只宠物,由用户决定数量,同第三条一个意思); 5. 测试类(PetStoreDemo),要求能够测试宠物商店(PetStore)中的增加和查询功能。
(Pet store all pet has three attributes: name, colors and age. Pet suggested naming the Pet pet store can increase pet inquiries pet name, color, age. Pet store suggested naming the PetStore Considering convenience, there are only two pets, Cat and Dog, follow-up will continue to increase the pet category, but Cat and Dog specific only requires the user to decide the quantity 4. Pet store pet storage structure must use the array (how much concrete array, that is, the number of pets, determined by the user the number of requirements to be able to test the increase in the pet store (PetStore) with the meaning of Article) 5 test (PetStoreDemo), and query functions.)

文件列表:
Dog.java (744, 2011-09-14)
Pet.java (114, 2011-09-14)
PetStore.java (3156, 2012-09-15)
PetStoreDemo.java (1240, 2012-09-15)
Cat.java (740, 2011-09-14)

近期下载者

相关文件


收藏者