What is an abstract class in C ++? Why it is required?

By definition, an abstract class in C++ is a class that has at least one pure virtual function (i.e., a function that has no definition). The classes inheriting the abstract class must provide a definition for the pure virtual function; otherwise, the subclass would become an abstract class itself.

Sizin İçin Seçtik  What is base class and subclass?

Leave a Reply

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