single inheritance - Definition. Was ist single inheritance
Diclib.com
Wörterbuch ChatGPT
Geben Sie ein Wort oder eine Phrase in einer beliebigen Sprache ein 👆
Sprache:

Übersetzung und Analyse von Wörtern durch künstliche Intelligenz ChatGPT

Auf dieser Seite erhalten Sie eine detaillierte Analyse eines Wortes oder einer Phrase mithilfe der besten heute verfügbaren Technologie der künstlichen Intelligenz:

  • wie das Wort verwendet wird
  • Häufigkeit der Nutzung
  • es wird häufiger in mündlicher oder schriftlicher Rede verwendet
  • Wortübersetzungsoptionen
  • Anwendungsbeispiele (mehrere Phrasen mit Übersetzung)
  • Etymologie

Was (wer) ist single inheritance - definition

TO HAVE MORE THAN ONE PARENT CLASS
Single inheritance; Diamond problem; Troublesome diamond; Multi-inheritance; Diamond of doom; Diamond of Death; Diamond inheritance; Deadly Diamond of Death; Inheritance diamonds; Inheritance diamond; Diamond dependency
  • A diamond class inheritance diagram.

single inheritance         
The property of an object-oriented language which restricts a sub-class to be derived from only one parent. Opposite of multiple inheritance.
multiple inheritance         
<programming> In object-oriented programming, the possibility that a sub-class may be derived from multiple parent classes which are themselves not derived one from the other. (1997-08-06)
Multiple inheritance         
Multiple inheritance is a feature of some object-oriented computer programming languages in which an object or class can inherit features from more than one parent object or parent class. It is distinct from single inheritance, where an object or class may only inherit from one particular object or class.

Wikipedia

Multiple inheritance

Multiple inheritance is a feature of some object-oriented computer programming languages in which an object or class can inherit features from more than one parent object or parent class. It is distinct from single inheritance, where an object or class may only inherit from one particular object or class.

Multiple inheritance has been a controversial issue for many years, with opponents pointing to its increased complexity and ambiguity in situations such as the "diamond problem", where it may be ambiguous as to which parent class a particular feature is inherited from if more than one parent class implements said feature. This can be addressed in various ways, including using virtual inheritance. Alternate methods of object composition not based on inheritance such as mixins and traits have also been proposed to address the ambiguity.

Beispiele aus Textkorpus für single inheritance
1. However, the fact that the sharing out did not take place until now and the other parent has also died allows that the property could be dealt with as if it was a single inheritance received from one parent.