difference between overloading and overridding

Answer Posted / pramod

overloading :- There are two functions which have the
same name and they differ only either in their argument
number or argument type like myfunction(int a) and
myfunction(float a).

Overriding :- There are two functions with the eaxtly same
name,same type. One of these functions is in base class and
one will be in derived class

Is This Answer Correct ?    10 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which language is pure oop?

553


What are the data types in oop?

611


What does it mean when someone says I oop?

587


What is polymorphism and why is it important?

562


What is difference between class and object with example?

568






What is destructor give example?

608


What is the difference between abstraction and polymorphism?

621


Why polymorphism is used in oops?

590


What is object in oop?

691


What is abstraction and encapsulation?

577


What is abstraction encapsulation?

665


Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer

1625


Why is object oriented programming so hard?

618


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

1767


What is polymorphism explain its types?

690