Can abstract classes have constructors C++?

Can it have constructor? Yes it can and the purpose is to initialize local variables from the base class. You should avoid using public constructor in Abstract and use protected only.

Sizin İçin Seçtik  How many class can you inherit?

Leave a Reply

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