What is an abstract class in C++ with example?

A class that contains a pure virtual function is known as an abstract class. In the above example, the class Shape is an abstract class. We cannot create objects of an abstract class. However, we can derive classes from them, and use their data members and member functions (except pure virtual functions).

Sizin İçin Seçtik  Abstract class ne demek Java?

Leave a Reply

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