![]() |
Data Abstraction and Problem Solving with C++Walls and Mirrorsby Frank M. Carrano |
![]() |
||||
Sphere410.h File ReferenceDetailed DescriptionDescendant classSphere inherits from the abstract base class EquidistantShape . The abstract base class forces classes the derive from it to implement the pure virtual methods in its interface. If the descendant class fails to implement all pure virtual methods, then it is itself an abstract class. The Sphere class given here does implement all pure virtual methods, thus it is a concrete class - meaning instances of type Sphere can be created.Notice the virtual destructor. Why must it be declared virtual?
Definition in file Sphere410.h.
Go to the source code of this file.
|