What does object slicing mean?

Definitions for object slicing
ob·ject slic·ing

This dictionary definitions page includes all the possible meanings, example usage and translations of the word object slicing.

Wikidata

  1. Object slicing

    In object-oriented programming, a subclass typically extends its superclass by defining additional member variables. If a superclass instance is assigned its value from a subclass instance, member variables defined in the subclass cannot be copied, since the superclass has no place to store them. This is a natural and unavoidable consequence of assignment by value from subclass objects. The term object slicing is sometimes used to refer to this aspect of assignment by value to a superclass instance. Object slicing is also used to refer to a more subtle, problematic, case in which an object assignment by value appears to be to a superclass instance but is actually to a subclass instance. From the perspective of object memory layout, the member variables of the source instance can be thought of as having been "sliced off", leaving the corresponding member variables in the destination instance unchanged. It is this partial assignment that often surprises programmers and leads to unintended consequences. Unexpected object slicing can happen in languages such as C++ in which assignment by value is not polymorphic. It is not possible in the D programming language, which allows object inheritance only through reference types.

How to pronounce object slicing?

How to say object slicing in sign language?

Numerology

  1. Chaldean Numerology

    The numerical value of object slicing in Chaldean Numerology is: 5

  2. Pythagorean Numerology

    The numerical value of object slicing in Pythagorean Numerology is: 2

Translation

Find a translation for the object slicing definition in other languages:

Select another language:

  • - Select -
  • 简体中文 (Chinese - Simplified)
  • 繁體中文 (Chinese - Traditional)
  • Español (Spanish)
  • Esperanto (Esperanto)
  • 日本語 (Japanese)
  • Português (Portuguese)
  • Deutsch (German)
  • العربية (Arabic)
  • Français (French)
  • Русский (Russian)
  • ಕನ್ನಡ (Kannada)
  • 한국어 (Korean)
  • עברית (Hebrew)
  • Gaeilge (Irish)
  • Українська (Ukrainian)
  • اردو (Urdu)
  • Magyar (Hungarian)
  • मानक हिन्दी (Hindi)
  • Indonesia (Indonesian)
  • Italiano (Italian)
  • தமிழ் (Tamil)
  • Türkçe (Turkish)
  • తెలుగు (Telugu)
  • ภาษาไทย (Thai)
  • Tiếng Việt (Vietnamese)
  • Čeština (Czech)
  • Polski (Polish)
  • Bahasa Indonesia (Indonesian)
  • Românește (Romanian)
  • Nederlands (Dutch)
  • Ελληνικά (Greek)
  • Latinum (Latin)
  • Svenska (Swedish)
  • Dansk (Danish)
  • Suomi (Finnish)
  • فارسی (Persian)
  • ייִדיש (Yiddish)
  • հայերեն (Armenian)
  • Norsk (Norwegian)
  • English (English)

Word of the Day

Would you like us to send you a FREE new word definition delivered to your inbox daily?

Please enter your email address:


Citation

Use the citation below to add this definition to your bibliography:

Style:MLAChicagoAPA

"object slicing." Definitions.net. STANDS4 LLC, 2024. Web. 24 Apr. 2024. <https://www.definitions.net/definition/object+slicing>.

Discuss these object slicing definitions with the community:

0 Comments

    Are we missing a good definition for object slicing? Don't keep it to yourself...

    Free, no signup required:

    Add to Chrome

    Get instant definitions for any word that hits you anywhere on the web!

    Free, no signup required:

    Add to Firefox

    Get instant definitions for any word that hits you anywhere on the web!

    Browse Definitions.net

    Quiz

    Are you a words master?

    »
    a wild and exciting undertaking (not necessarily lawful)
    A deny
    B adventure
    C conceal
    D observe

    Nearby & related entries:

    Alternative searches for object slicing: