An abstract class identifies the properties that need to be defined through pure virtual functions. For instance, if a Shape has a volume, then the abstract Shape class would include a pure virtual function for volume.
The term interface refers to an abstract class that contains no data members.
and / or
Pure Virtual Functions
A pure virtual function is a virtual function that has form but no implementation. The declaration of a pure virtual function takes the form
virtual type identifier(parameters) = 0;
No comments:
Post a Comment