Inheritance and Derived Classes

  • Joe Pitt-Francis
  • Jonathan WhiteleyEmail author
Part of the Undergraduate Topics in Computer Science book series (UTICS)


Suppose we have developed a class for a specific application. If we want to extend the software based on this class to do something slightly different we could modify the class already written. This, however, may not be an ideal solution as we may introduce conflicts with the functionality of the original class. A more suitable approach is to derive a new class that has the features of the original class (modified if required) together with any new features required. This is known as inheritance, and is a very powerful feature of the C++ language. One particularly useful feature of inheritance is that of polymorphism: we may apply the same functionality to instances of both the original class and the derived class, with the correct operations “under the hood” being chosen by the computer based on whether the instance of the class is the original or derived class.


Unify Modelling Language Base Class Class Member Access Privilege Abstract Class 
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.


Mathematical Methods and Linear Algebra

  1. 1.
    Iserles, A.: A First Course in the Numerical Analysis of Differential Equations, 2nd edn. Cambridge University Press, Cambridge (2009) Google Scholar
  2. 2.
    Kreyszig, E.: Advanced Engineering Mathematics, 9th edn. Wiley, New York (2006) Google Scholar

Copyright information

© Springer-Verlag London Limited 2012

Authors and Affiliations

  1. 1.Department of Computer ScienceUniversity of OxfordOxfordUK

Personalised recommendations