Multiple Choice
Which of the following is not true about friend functions and friend classes?
A) A class can either grant friendship to or take friendship from another class using the friend keyword.
B) A friend declaration can appear anywhere in a class definition.
C) A friend of a class can access all of its private data member and member functions.
D) The friendship relationship is neither symmetric nor transitive.
Correct Answer:

Verified
Correct Answer:
Verified
Q2: If the line:<br>Friend class A;<br>Appears in class
Q4: Which of the following are true about
Q7: Assume that t is an object of
Q8: Inside a function definition for a member
Q9: Which of the following statements will not
Q10: Which of the following is not an
Q11: Increment i )<br>{<br>Count = c;<br>}<br>Does not cause
Q22: An error occurs if:<br>A) A non-reference, non-const,
Q25: For a non-constant member function of class
Q31: When composition (one object having another object