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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2004 Springer-Verlag London
About this chapter
Cite this chapter
Stobart, S., Vassileiou, M. (2004). Class Inheritance. In: PHP and MySQL Manual. Springer Professional Computing. Springer, London. https://doi.org/10.1007/978-0-85729-404-3_38
Download citation
DOI: https://doi.org/10.1007/978-0-85729-404-3_38
Publisher Name: Springer, London
Print ISBN: 978-1-4471-1055-2
Online ISBN: 978-0-85729-404-3
eBook Packages: Springer Book Archive