Question
In C++ create an ADT class name Dog having the following members: char gender; int age; string name; Dog(); Dog(string n, int a, char g);
In C++ create an ADT class name Dog having the following members: char gender; int age; string name; Dog(); Dog(string n, int a, char g); dispDog(); |
Create Collie class from Dog having the following members: string look; // possible values: full coat; short coat int size; // Possible values: 50 to 70 pounds int LifeSpan; //Possible values: 10 to 14 years Collie(); Collie(string n, int a, char g, string l, int s, int ls):Dog(n,a,g); disp() |
//In main() create a Collie dog (object) named myCollie. Instantiate myCollie object as Name - Max Age - 3 Gender - Male (M) Look - Short Coat Size - 55 lbs Life Span - 13 |
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started