previous | start | next

Syntax 13.2: Calling a Superclass Method

  super.methodName(parameters)

Example:

  public void deposit(double amount)
{
   transactionCount++;
   super.deposit(amount);
}

Purpose:

To call a method of the superclass instead of the method of the current class


previous | start | next