What is public/private and protected inheritance in C++?

public inheritance makes public members of the base class public in the derived class, and the protected members of the base class remain protected in the derived class. protected inheritance makes the public and protected members of the base class protected in the derived class.

Sizin İçin Seçtik  LinkedIn sertifika nasıl eklenir?

Leave a Reply

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