0

what java code can list a 30 animals with using (enterAnimals:) then it will automatically go to class,

examples: if i enter dog it will go to the class of animals with 4 legs..if i enter a bird it will go to class animals can fly or had a wings?

6th Aug 2017, 4:53 AM
Andrea Galeria
Andrea Galeria - avatar
2 Answers
+ 1
I'm not sure if I got it right. You want to output the attributes of a class the user says?
6th Aug 2017, 5:09 AM
voidneo
0
yes... i'm a first year college then my instructor did'nt explain about the use of each code we dont know what code can print a 30 animals which is if u run a program output say enteranimals: then if i write dog or bird it will automatically save in a class or a different object..sir explain us to list 30 animals then 10 had wings and 10 with 4legs and 10 animals without legs..
6th Aug 2017, 6:01 AM
Andrea Galeria
Andrea Galeria - avatar