What is friend class in C++?

What is friend class in C++?

When a class declares another class as its friend, it is giving complete access to all its data and methods including private and protected data and methods to the friend class member methods. Friendship is one way only, which means if A declares B as its friend it does NOT mean that A can access private data of B. It only means that B can access all data of A.
Explain default constructor. What is a default constructor?
Default constructor - Default constructor is the constructor with no arguments or all the arguments has default values..
What is abstraction?
What is abstraction? - The process of hiding unnecessary data and exposing essential features is called abstraction....
C++-what-is-overriding.aspx
Overriding - Defining a function in the derived class with same name as in the parent class.
Post your comment