文件名称:3-java
介绍说明--下载内容均来自于网络,请自行研究使用
宠物商店,
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.
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
Pet.java
PetStore.java
PetStoreDemo.java
Cat.java