Skip to main content

Überladene Operatoren

  • Chapter
Book cover Programmieren in C++

Part of the book series: Objekttechnologie ((OBJEKTTECH))

  • 1413 Accesses

Zusammenfassung

In C++ ist es bis auf wenige Ausnahmen möglich, jeden Operator, z.B. +, *, ! usw. zu überladen und so dessen Funktionalität auf benutzerdefinierte Datentypen auszudehnen. Dazu definiert man eine Funktion, deren Name aus dem Schlüsselwort operator und einem nachfolgenden Operatorsymbol besteht. Neue Operatoren, die die Menge der für die vordefinierten und zusammengesetzten Datentypen verfügbaren Operatoren erweitern, können nicht definiert werden.

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
Softcover Book
USD 39.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

© 1998 Springer-Verlag Berlin Heidelberg

About this chapter

Cite this chapter

Schader, M., Kuhlins, S. (1998). Überladene Operatoren. In: Programmieren in C++. Objekttechnologie. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-58762-7_16

Download citation

  • DOI: https://doi.org/10.1007/978-3-642-58762-7_16

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-63776-9

  • Online ISBN: 978-3-642-58762-7

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics