...
OOPS
November 8, 2023
Data-Structures
November 8, 2023
OOPS
November 8, 2023
Data-Structures
November 8, 2023

OOPS

Question 10
Which one of the following CAN NOT be a friend
A
function
B
class
C
object
D
operator function
Question 10 Explanation: 
The function is not in the scope of the class to which it has been declared as a friend. It cannot be called using the object as it is not in the scope of that class. It can be invoked like a normal function without using the object.
Correct Answer: C
Question 10 Explanation: 
The function is not in the scope of the class to which it has been declared as a friend. It cannot be called using the object as it is not in the scope of that class. It can be invoked like a normal function without using the object.

Leave a Reply

Your email address will not be published. Required fields are marked *