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) \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
Get step-by-step solutions from verified subject matter experts
