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
Q1: Inside a function definition for a member
Q5: Which of the following are true about
Q8: The numbers 3, 2, 5, 7 are
Q11: Which of the following statements will not
Q22: Assume that t is an object of
Q23: When composition (one object having another object
Q26: If Americans are objects of the same
Q29: Static member functions:
A) Can use the this
Q30: An error occurs if:
A) A non-reference, non-const,
Q32: For a non-constant member function of class
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