Question: class A { public: void Print ( ) : protected: string name; } ; private: string address; class B : public A { } B
class A
public:
void Print:
protected: string name;
;
private: string address;
class B : public A
is the superclass of
function print available in A and everyone else but not
variable 'name' only accessible by A and B not anyone else
variable 'address' only accessible by A and B not anyone else
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
