Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

In C++ Create an ADT class name Dog having the following members: char gender; i

ID: 3859500 • Letter: I

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);
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 as Max, Age as 3, Gender as Male (M),

Look as Short Coat, Size as 55 lbs and Life Span as 13

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 as Max, Age as 3, Gender as Male (M),

Look as Short Coat, Size as 55 lbs and Life Span as 13

Explanation / Answer

cout << "Age : " << age << endl;

cout << " Gender: " << gender << endl;