What is Inheritance?
Inheritance is what happens when a subclass receives variables or methods from a superclass.
Java does not support multiple inheritance, except in the case of interfaces.
Java Inheritance Syntax
The following class definition causes ar15 to become a subclass of rifle.
public class ar15
extends rifle {
instance and class member definitions
}
|
Bookmark What is Inheritance?

