super Java Keyword

The super keyword refers to the superclass of the class in which the keyword is used.

Examples

  public class MyClass
  {
     public MyClass(String arg)
     {
        super(arg);
     }
	 
     public String myStringMethod()
     {
        return super.otherStringMethod(); 
     }
  

Remarks

Related Topics

None.