CJCoding With Joseph

Three Level Inheritance

Inheritance can span multiple levels. Mammal inherits from LivingThing, and you must make Cat inherit from Mammal. A Cat then has access to members from every ancestor. Do NOT write a Main method.

When the tester creates a Cat and calls Breathe(), Nurse(), then Meow(), the program prints:
Breathing
Nursing
Meow

Expected Output:

Breathing
Nursing
Meow
Topics:
Inheritance
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (cw, cr, fori)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.