GoConqr has a new look! Let us know what you think.

Mind map

Inheritance: Superclass

Amar Shah English

Map content

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

Information

Description
Mind Map on Inheritance: Superclass, created by Amar Shah on 21/11/2019.
Created by
Amar Shah
Views
0
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?