Question: Answer in c++ a class called dog has been defined, another class called dog pound has been defined,the two classes are not related by inheritance,

Answer in c++

a class called dog has been defined, another class called dog pound has been defined,the two classes are not related by inheritance, this dog pound class identifies a member function declared as
"bool isReg(dog rescue);"
what must we write in the dog?h file in order to make it possible for the isReg function to have access to the private data attributes of any dog instance object

Step by Step Solution

3.42 Rating (149 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Using pointer to class dog class dog int data writ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!