Difference between over loading and over ridding?

Answer Posted / nagababu

Overloading:-Writing Two or three methods with same name
but different parameters in same class,it is called
methodOverloading.

Overriding:-writing same methodname and parameters in
subclass and superclass with same return type,it is called
methodoverriding.

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can a varargs method be overloaded?

615


What is multilevel inheritance?

721


Get me a number puzzle game-program

1690


What is the types of inheritance?

598


Is data hiding and abstraction same?

567






why reinterpret cast is considered dangerous?

1896


What is inheritance and how many types of inheritance?

614


What is difference between data abstraction and encapsulation?

613


What is interface in oop?

658


What is the real life example of polymorphism?

605


Which method cannot be overridden?

574


What is difference between pop and oop?

601


Which is not an object oriented programming language?

537


c++ program to swap the objects of two different classes

1759


What is use of overloading?

604