Exercise 1: Displaying Message Using Inheritance
This exercise requires you to implement the concepts of polymorphism/inheritance to display information about two base classes.
We'll cover the following...
Problem Statement
The code below has:
- A parent class named
Animal
.- Inside it define:
name
age
set_value(int a,string b)
method:- takes
age
andname
- takes
- Inside it define: