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 1 of 3
choose your answer...
;
- phone is
Question Blank 2 of 3
choose your answer...
;
- bankAccount is
Question Blank 3 of 3
choose your answer...
.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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!