GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Mindmap

Polymorphism

Test Mercury Englisch

Inhalt der Mindmap

Polymorphism

  1. Ad-Hoc

    • Coercion
      • Conversion of data types
        • Implicit
          • Hierarchycal
            • Integer to Real
        • Explicit
          • Casting
          • Primitive to Wrapper
          • Class to superclass
    • Overloading
      • Several functions, same name
        • int myAdd(int x, int y){....} double myAdd(double x,double y){...}
        • Arithmetical operators
          • Integer + Integer -> Integer
          • Float + Float-> Float
          • Integer + Float-> Float
        • Calculate length of list with elements of any type
  2. Universal

    • Parametric / Genericity
      • Type
        • public class Entry{ private final K mKey; private final V mValue; public Entry(K k, V v){ mKey = k; mValue = v; } 
        • Entry elem1 = new Entry<>(3,”Programming”); After declaration is not needed to infer the type in the assignation.
        • Represent entries of any type in dictionary
      • Function
        • public static int lengthA(T[] inputArray){...}
        • Calculate length of list with elements of any type
    • Inclusion / Inheritance
      • Class B Inherits from Class A:
        • Attributes
        • Methods
          • Redefine
          • Use
      • One Class
        • Java
      • Several Classes
        • C++

Informationen

Beschreibung
Mindmap am Polymorphism, erstellt von Test Mercury am 04/11/2023.
Erstellt von
Test Mercury
Aufrufe
0
Bewertung

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck