Teacher zapp

Cat relations

  • 4
  • Locked
  • Bonus task
Finished task: A cat has a name and a mother. Create a class that reflects this. Create two objects: a daughter cat and a mother. Display them on the screen. New task: Each cat has a name, a father, and a mother. Edit Cat so that it reflects these relationships. Create 6 objects: grandfather (the father's father), grandmother (the mother's mother), father, mother, son, daughter.
You can't complete this task, because you're not signed in.
Comments (5)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
carlos oliveiraLevel 8 , Seattle
22 April, 18:55
omg!!! how flexible is Java!!! unbelievable! I really could not expect how i can twist things and its just work fine... its kind a free service objects you just need to create constructors/containers("if i can use this term") to accept them. i never seen this in any other programming language. I had to confess its took me a full day to understand it, but i got it now. just amazing!!
haet trivediLevel 7 , Vasai-Virar
12 January, 07:11
where am i wrong output is correct but not verifying it plzz help.
RomanLevel 41
14 January, 07:12
If you need help, something isn't right in your code, the server won't accept your solution (even if you are 100% sure that it is correct). Describe your question/issue in the HELP section at codegym.cc/help.
Vishwambhar AwaganLevel 8 , Pune
26 October 2018, 17:26
See the condition there u need to create new task..
Sonu TiwariLevel 15 , Hyderabad
21 September 2018, 09:19
Why I am getting error now? Everything seems good here.