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

Mindmap

Inheritance: Superclass

Amar Shah Englisch

Inhalt der Mindmap

Inheritance: Superclass

  1. Superclass: Animal

    • class: Fish
    • class: Dog
    • class: Bird
    • NOTE: Subclass can access the Superclass public, protected methods and fields but not superclass private methods
  2. Method Overriding

    • When you extend a class, you can change the behavior of the method in the parent class
      • This happens when you write in a subclass a method that has the same signature as a method in the parent class
  3. Calling the Superclass Constructors

    • By invoking the Constructor of the subclass,it calls the no argument constructor of the parent class

Informationen

Beschreibung
Mindmap am Inheritance: Superclass, erstellt von Amar Shah am 21/11/2019.
Erstellt von
Amar Shah
Aufrufe
0
Bewertung

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck