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: 3834600 • 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 - Max

Age - 3

Gender - Male (M)

Look - Short Coat

Size - 55 lbs

Life Span - 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 - Max

Age - 3

Gender - Male (M)

Look - Short Coat

Size - 55 lbs

Life Span - 13

Explanation / Answer

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

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