Skip to main content
  • 62 Accesses

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 16.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 16.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints 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

Publish with us

Policies and ethics