If the line: friend class A;
Appears in class B, and the line:
Friend class B;
Appears in class C, then:
A) Class A is a friend of class C.
B) Class A can access private variables of class B.
C) Class C can call class A's private member functions.
D) Class B can access class A's private variables.
Correct Answer:
Verified
Q23: When composition (one object having another object
Q24: Static data members of a certain class:
A)
Q25: A client changing the values of private
Q26: If Americans are objects of the same
Q27: The assignment operator (=) can be used
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
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