devxlogo

Abstract classes as interfaces

Abstract classes as interfaces

In software design, you should plan ahead the interface of a class hierarchy to make sure that all related concrete classes share a common interface. This can be achieved by using abstract classes. An abstract class is one having at least one pure virtual member function, i.e., a non-implemented placeholder, which must be implemented by its derived class(es). Mind that instances of an abstract class cannot be created, since it

devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist