Advertisement

Class Inheritance

  • Simon Stobart
  • Mike Vassileiou
Part of the Springer Professional Computing book series (SPC)

Abstract

In the previous chapter we have introduced the concepts of object orientation, classes and objects. We have shown how PHP can be used to create classes and how instances of these classes can be used to create objects. At the start of the previous chapter we mentioned that one of the benefits of object orientation was its support for software reuse. The main feature of object orientation which supports reuse is that of class inheritance. We shall introduce inheritance within this chapter, illustrating how and why it is useful. We shall also introduce the concept of polymorphism which is related to inheritance and illustrate why this is also extremely useful.

Keywords

Motor Vehicle Frame Size Fuel Type Function Disp Previous Chapter 
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.

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Springer-Verlag London 2004

Authors and Affiliations

  • Simon Stobart
    • 1
  • Mike Vassileiou
    • 2
  1. 1.School of Computing and TechnologyUniversity of SunderlandSunderlandUK
  2. 2.iNET4UGreece

Personalised recommendations