1.

Which of the following cannot be a friend?(a) Function(b) Class(c) Object(d) Operator functionI had been asked this question in final exam.Question is taken from OOPs Concept topic in division Basics Concepts of C++ of C++

Answer»

Correct ANSWER is (c) Object

To EXPLAIN I would say: Objects of any class cannot be MADE a friend of any other or same class WHEREAS functions, classes and operator functions can be made a friend.



Discussion

No Comment Found

Related InterviewSolutions