Skip to main content

Effizient erben mit Prototypen

  • Chapter
  • First Online:
Objektorientierte Programmierung mit JavaScript
  • 9761 Accesses

Zusammenfassung

Im letzten Kapitel haben wir zwei Techniken kennen gelernt, wie Methoden einer Klasse an eine Unterklasse vererbt werden können: Universell und flexibel, aber höchst schwerfällig ist das Verfahren der Delegation. Wird dagegen nur der Aufruf des Konstruktors delegiert, werden alle Methoden – und gegebenenfalls auch Attribute – automatisch vererbt.

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

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 29.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever

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

Corresponding author

Correspondence to Jörg Bewersdorff .

Rights and permissions

Reprints and permissions

Copyright information

© 2014 Springer Fachmedien Wiesbaden

About this chapter

Cite this chapter

Bewersdorff, J. (2014). Effizient erben mit Prototypen. In: Objektorientierte Programmierung mit JavaScript. Springer Vieweg, Wiesbaden. https://doi.org/10.1007/978-3-658-05444-1_19

Download citation

Publish with us

Policies and ethics