CIS 35A: Introduction to Java Programming

Home | Green Sheet | Lectures | Assignments | FAQ | Grades

Inheritance

Inheritance
Introduction
Use

How to use inheritance in your applications

  • You can use inheritance in your applications to create generic superclasses that implement common elements of related subclasses.
  • It's also common to create classes that inherit from classes that are defined by the Java API.
  • When you inherit a class, you can use the subclass whenever an instance of the superclass is called for.

Previous | How inheritance works | Java API | Object class | Use | Next