C++
Data member variables: species, weight, age
2. Write the DEFINITION/IMPLEMENTATION (write the code) of the classpetdeclaration in Question 1.
3. Extendthepetclass to include the following data members and functions i.e.,INHERITANCE.DEFINE AND IMPLEMENT(write the code for) the extended class. Class will represent a pet of typeCanine.
4. Consider the pet and extended pet classes written in the previous questions:
You do not need to write any code for thefunctions, just the prototypes.
Youdoneed to create and objects of of theinheritedpet class and write the code for c and d to represent using the prototypes created in a and b.
You do not need to write any #include objects, main or function calls. Do not worry about setting any values for the data members.Assumeany base get functions exist, if needed
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here