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

devx-admin

Share the Post: