Question: Given the following code: class Parent { public: string address; protected: int phone; private: int bankAccount; } ; class Child : protected Parent { }
Given the following code:
class Parent
public:
string address;
protected:
int phone;
private:
int bankAccount;
;
class Child : protected Parent
;
Determine the access type of each of the attributes that were inherited by the Child class from the Parent class.
address is
Question Blank of
choose your answer...
;
phone is
Question Blank of
choose your answer...
;
bankAccount is
Question Blank of
choose your answer...
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
