Question: 16. [C++Access] Select one best choice for your answer, for C++ access control (as discussed in the class). What is the access specification for X,
![16. [C++Access] Select one best choice for your answer, for C++](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f5026377708_96366f5026316511.jpg)




16. [C++Access] Select one best choice for your answer, for C++ access control (as discussed in the class). What is the access specification for X, Y, Z defined in A as shown below, in class B, C, and D. Select each from the following choice of: class B public A X is (1)in in Zis (3)in class C X is (4)in Y is (5)in Zis (6)in In Base C s A class D vate A inc Ixis (7) in D public: int X; protected: int YY is (2) private: int Z, Y is (8)in Zis (9)in X is___in B A. public B. private C. protected D. not accessible E. none of the choices here
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
