Which of the following statements about friend functions and friend classes is false?
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
Q25: A client changing the values of private
Q26: If Americans are objects of the same
Q27: The assignment operator (=) can be used
Q28: If the line: friend class A;
Appears in
Q29: Static member functions:
A) Can use the this
Q30: An error occurs if:
A) A non-reference, non-const,
Q31: Inside a function definition for a member
Q32: For a non-constant member function of class
Q33: Returning references to non-const, private data:
A) Allows
Q34: Which of the following statements will not
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents