What Cannot be inherited in C++?

In C++, friend is not inherited. If a base class has a friend function, then the function does not become a friend of the derived class(es). Constructors are different from other class methods in that they create new objects, whereas other methods are invoked by existing objects.

Sizin İçin Seçtik  Can constructors be inherited in Java?

Leave a Reply

Your email address will not be published. Required fields are marked *