Google

Book Appointment with leading CIBIL Consultant      In case of any problem with your CIBIL Report or CIBIL Score, Contact on +919814915812 and talk to Ashok Goyal during 10 AM(IST) to 5 PM(IST) every day for booking Appointment.

Over Riding concept in java

Subscribe
Enter Your Email
Over Riding concept in java
5 (100%) 1 vote

Same method name same input parameter with different implementation is called method over riding. if in class A we have a method example:
class A{
void methodx(){
sysout(“in class a mtd x”);}
class B extends A{
void method x(){
sysout(“in class b mtdx”);
}
Inheritance is required for method overRiding.




Leave a Reply

*

Menus
Skip to toolbar