Run-Time Type Information and Casting

  • Graham M. Seed


We saw in the previous chapter that similar classes can be placed in a class hierarchy, with numerous classes derived from a single base class. Working in terms of a pointer to the base class, rather than objects of the derived classes, we are able to operate on functions common to all derived classes via a single pointer object that can point to any derived class object. Such a runtime capability is essential to object-oriented programming, but unfortunately moves us away from the strongly typed compile-time mechanism so characteristic of the C++ language.


Base Class Reference Type Member Function Virtual Function Public Plane 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Springer-Verlag London 2001

Authors and Affiliations

  • Graham M. Seed
    • 1
  1. 1.Department of Mechanical & Chemical EngineeringHeriot Watt UniversityEdinburghUK

Personalised recommendations