Question: Which statements are true about these three classes? (Check all that apply) class x { ... friend class Y; friend class Z; }; class y

Which statements are true about these three classes? (Check all that apply) class x { ... friend class Y; friend class Z; }; class y { ... friend class Z; }; class z { ... }; Group of answer choices Z can directly access private members of X Z can directly access private members of Y X can directly access private members of Y Y can directly access private members of Z X can directly access private members of Z Y can directly access private members of X

Which statements are true about these three classes? (Check all that apply)

Which statements are true about these three classes? (Check all that apply) \begin{tabular}{l|l} class & \\ {classyfriendclassY; & friend class Z; \\ friend class Z; & \}; \end{tabular} Z can directly access private members of X Z can directly access private members of Y X can directly access private members of Y Y can directly access private members of Z X can directly access private members of Z Y can directly access private members of X

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 Databases Questions!