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

Mind map

Inheritance

Nova Saint English

Map content

Inheritance

  1. Functions by extending a class

    • Parent Class
      • Represents the characteristics common to all child classes
      • Has methods common to all child classes
      • Has attributes common to child classes
    • Child Class
      • Represents specific characteristics to each child class
      • super();
        • Initializes an instance of the direct superclass of the current object
        • Must be the first statement in the constructor
        • Can also be used to call a hidden member or an overridden method
      • Override
        • Changes the behavior of a method in the parent class
        • If the method has the same name, but the arguments differ, it's considered overloading
    • Final prevents a class from being extended
  2. Keywords:

    • 'extends' to actually attribute a subclass to another class
    • 'final' to prevent the class from being extended
    • 'instanceof' to test if an object is of a specified type
  3. Overrides

    • When you change the functionality of a method in the parent class
  4. Type Casting

    • Down Casting
    • Up Casting

Information

Description
Mind Map on Inheritance, created by Nova Saint on 21/11/2019.
Created by
Nova Saint
Views
3
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?