what's the difference between function overloading and
function overiding?

Answer Posted / vinita taneja

1.function overloading is the function having same name but with different signatures whereas , if there is a member function having same name in both base and derived class , then the member function of derived class will be executed and this is called function overriding.

2.there is no concept of inheritance in function overloading whereas it is there in function overriding.

3.in function overloading , signatures must be different whereas in function overriding , signatures must be same.

Is This Answer Correct ?    26 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

write a program to convert a decimal number in to its equivalent binary number?

2286


What are the symptoms of stl?

840


What is the use of stl?

834


draw a flowchart that accepts two numbers and checks if the first is divisible by the second.

3114


Why should a c++ programmer be interested in stl?

857


Describe the My Computer and My Documents folders; identify the elements that are present in every Window.

2134


Who created stl?

882


Is stl part of c++ standard?

842


Can we use stl in coding interviews?

1563


How do you convert stl to steps?

862


Do you like to Submit Questions in Bulk under Same Category?? Then use our Bulk ListerDo you like to Submit Questions in Bulk under Same Category?? Then use our Bulk Lister

1876


What are stl algorithms?

875


When did c++ add stl?

954


What are the various types of stl containers?

947


What are the components of stl?

868