text cover

Data Abstraction and Problem Solving with C++

Walls and Mirrors

by Frank M. Carrano

Addison Wesley Logo

Sphere410.h File Reference


Detailed Description

Descendant class Sphere 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?

Date:
29 May 2006
Chapter:
Chapter 8
Page:
Page 410
Version:
5.0

Definition in file Sphere410.h.

Go to the source code of this file.

Classes

class  Sphere


Generated on Sun Aug 27 19:59:37 2006 for AWLogo by  doxygen 1.4.6