Inheritance in Java
Java Tutorial. The extension of Java classes and interfaces 06.fm. Greg Lavender. Slide 3 of 12. 6/15/99. Order of construction under the legacy ….
More PDF Content
Inheritance is a compile-time mechanism in Java that allows you to extend a class (called the base class or superclass) with another class (called the derived class or subclass). In Java, inheritance is used for two purposes:
- class inheritance – create a new class as an extension of another class, primarily for the purpose of code reuse. That is, the derived class inherits the public methods and public data of the base class. Java only allows a class to have one immediate base class, i.e., single class inheritance.
- interface inheritance – create a new class to implement the methods defined as part of an interface for the purpose of subtyping. That is a class that implements an interface âconforms toâ (or is constrained by the type of) the interface. Java supports multiple interface inheritance
Beginning Programming with Java for Dummies - For Dummies
Kommunikation in verteilten Anwendungen.... - Oldenbourg
Mastering RMI: Developing Enterprise Applications... - John Wiley & Sons
Java Enterprise in a Nutshell (2nd Edition) - O'Reilly Media