Inheritance
You can only specify one superclass for any subclass that you create. Java does not support the inheritance of multiple superclasses into a single subclass. Super. Whenever a subclass needs to refer to its immediate superclass, it can do so by use of the keyword super. super has two general forms. The first calls the superclass' constructor. The second is used to access a member of the superclass that has been hidden by a member of a subclass. package main ; public class Car { private int a ; public Car ( int a ) { this . a = a ; } } package main ; public class BMW extends Car { public BMW ( int a ) { super ( a ) ; } } Also, super() must always be the first statement executed inside a subclass constructor. The second form of super acts somewhat like this , except that is always refers to the superclass of the subclass in which it is used. This second form of super is most applicable to situations in whic...