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

Mind map

Inheritance

Boning Deng English

Map content

Inheritance

  1. Extendible

    • Use the extend keyword to extend a class
    • Parent class
      • Superclass
        • Being extend
    • Child class
      • Subclass
        • Add new methods and fields to influence the parent class
          • Method overriding
            • A new method from a subclass that has the same signature as a method in the parent class
          • Method overloading
            • A new method from a subclass that has the same name but different argument as a method in the parent class
        • Constructors
          • When creating a subclass object, its superclass is also instantiated
          • Keyword super
            • Represent an instance of the direct superclass of the current object
    • Is-a relationship
      • A subclass is a type of the superclass, but the superclass is not necessarily the subclass
    • Accessibility
      • A subclass can access its superclass's public and protected methods and fields
  2. Inextensible

    • Use the final keyword or final classes to prevent classes from being subclassed

Information

Description
Mind Map on Inheritance, created by Boning Deng on 24/11/2019.
Created by
Boning Deng
Views
0
History
  • Created by Boning Deng · Nov 24, 2019
  • Copied by Boning Deng · Nov 24, 2019
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?