OOPS
November 8, 2023Data-Structures
November 8, 2023OOPS
|
Question 10
|
Which one of the following CAN NOT be a friend
|
function
|
|
|
class
|
|
|
object
|
|
|
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.
