Wednesday , October 26 2016
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.

Also See:   Java program to print happy numbers for a given range

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


Also See:   program in Java/ Bluej to display the present date and the date after N days
Method overriding in java
Method overriding in java

Incoming terms: overriding in java program.

Check Also

Program for Matrix Multiplication in JAVA

Announcement: Know how other students are getting higher education from abroad (US, UK, Germany) and ...

Leave a Reply

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

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