Subclass

Subclass

  • A class that is derived from another class is called a subclass (also a derived class, extended class, or child class).
  • Classes can be derived from classes that are derived from classes that are derived from classes, and so on, and ultimately derived from the topmost class, Object.
  • A subclass inherits all the members (fields, methods, and nested classes) from its superclass. Constructors are not members, so they are not inherited by subclasses, but the constructor of the superclass can be invoked from the subclass.

Subclass — Structure map

Clickable & Draggable!

Subclass — Related pages: