Friday , January 20 2017
Home / JAVA / Java program for Method overriding

Java program for Method overriding

Overriding is a technique in which we can recreate any function of base class by modifying this function with same name in the derived class.

The function in parent or base class is with same name and must also has same type of arguments if provided in the function of the child class.

Here child class inherited all the functionalists of the Base or Parent class and if the child class wants some type of modification in some function than they could easily modify the functions with same name by their respective modifications or changes in the child class function.

In Simpler terms overriding is the mechanism of recreation of function of base class in the child or derive class.


Method overriding in java
Method overriding in java

Incoming terms: overriding in java program.

Also See:   Binary Search Program in Java

Check Also

Program for Matrix Multiplication in JAVA

Matrix Multiplication:– Here is given a Java Program for Matrix Multiplication also call matrix product. In ...

Leave a Reply

Your email address will not be published. Required fields are marked *

Preventing spam * Time limit is exhausted. Please reload the CAPTCHA.