Friend Class and Polymorphism in C++

Friend Class and Polymorphism in C++

Sometimes we want to use the private members of class outside. For this, we need to use the keyword friend, which help us to create a function as friend function and helps us to create a class as friend class.

Video of the Day