Examine the following classes. The table lists the variables that are members of the Third class (some are inherited). Complete the table by filling in the access specification each member will have in the Third class. Write “inaccessible” if a member is inaccessible to the Third class.
class First{ private: int a; protected: double b; public: long c;};class Second: protected First{ private: int d; protected: double e; public: long f;};class Third: public Second{ private: int g; protected: double h; public: long i;};
Member Variable | Access Specification in Third Class |
a |
|
b |
|
c |
|
d |
|
e |
|
f |
|
g |
|
h |
|
i |
|
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.