2080 6

Object Oriented Programming20805 marksFriend function and Static function

Explain about friend function and friend class with an example.

Explain about friend function and friend class with an example. [5]

A friend function is a function that is not a member of a class but has access to the private and protected members of that class. - The declaration is placed inside the class body (in either private or public section) preceded by the keyword friend - It is not a member function, so it is called ...

Up nextDescribe the chain of constructors and destructors in inheritance.