Question 1: C++ OOPS Friend Function Concept
What is the main purpose of a friend function in C++?
Question 2: C++ OOPS Friend Function Syntax
Which keyword is used to declare a friend function inside a class?
Question 3: C++ OOPS Friend Function Example
What will be the output of this code?
Question 4: C++ OOPS Friend Function and Encapsulation
Does declaring a function as a friend violate encapsulation?
Question 5: C++ OOPS Friend Function Multiple Classes
What will be the output?
Question 6: C++ OOPS Friend Class Concept
Which statement is true about friend classes in C++?
Question 7: C++ OOPS Friend Function and Object Passing
What will be the output?
Question 8: C++ OOPS Friend Function vs Member Function
Which of the following is true?
Question 9: C++ OOPS Operator Overloading with Friend Function
What will be the output?
Question 10: C++ OOPS Limitations of Friend Functions
Which of the following is NOT true about friend functions in C++?