Abstract
In Chapter 5 we saw that a subclass inherits code from its base class. However, code reuse is not the primary goal of inheritance. More important is the fact that a subclass inherits the interface, i.e., that it understands the same messages as its base class, although it may implement them differently. The compatibility between a subclass and its base class makes it possible for a variable at run time to contain objects of various types that react differently to a message.
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
© 1995 Springer-Verlag Berlin Heidelberg
About this chapter
Cite this chapter
Mössenböck, H. (1995). Dynamic Binding. In: Object-Oriented Programming in Oberon-2. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-79898-6_6
Download citation
DOI: https://doi.org/10.1007/978-3-642-79898-6_6
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-60062-6
Online ISBN: 978-3-642-79898-6
eBook Packages: Springer Book Archive