👉   Buy a JavaOne ticket for $400 off, get one for free! Use code:   GODUKE   (details here)   👈

Inheritance

Object-oriented programming allows classes to inherit commonly used state and behavior from other classes. This section covers how inheritance is handled by the Java language.


  1. Inheritance

    Creating classes that derive from other classes, inheriting fields and methods from those classes.

  2. Overriding and Hiding Methods

    Overriding instance methods in a subclass.

  3. Polymorphism

    Choosing the right method to execute at run time.

  4. Object as a Superclass

    Listing the methods from the Object class.

  5. Abstract Methods and Classes

    Sharing common methods between classes with abstract classes.



Back to Tutorial List