1.What is super?
super is a keyword which is used to access the method or member variables from the superclass. If a method hides one of the member variables in its superclass, the method can refer to the hidden variable through the use of the super keyword. In the same way, if a method overrides one of the methods in its superclass, the method can invoke the overridden method through the use of the super keyword.
super is a keyword which is used to access the method or member variables from the superclass. If a method hides one of the member variables in its superclass, the method can refer to the hidden variable through the use of the super keyword. In the same way, if a method overrides one of the methods in its superclass, the method can invoke the overridden method through the use of the super keyword.
2.What is an Interface?
An interface is a description of a set of methods that conforming implementing classes must have.
Note:
· You can’t mark an interface as final.
· Interface variables must be static.
· An Interface cannot extend anything but another interfaces.
2.What is an abstract class?
Abstract classes are classes that contain one or more abstract methods. An abstract method is a method that is declared, but contains no implementation.
An interface is a description of a set of methods that conforming implementing classes must have.
Note:
· You can’t mark an interface as final.
· Interface variables must be static.
· An Interface cannot extend anything but another interfaces.
2.What is an abstract class?
Abstract classes are classes that contain one or more abstract methods. An abstract method is a method that is declared, but contains no implementation.