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

Answer Posted / mms zubeir

Function overloading is providing more than one function
with the same name which will operate on different
type/number of input data. Most probably, the kind of
operation will not be changed.

Function overriding is nothing but giving different
operations with the same function name and with same type
of input data (that is, the signature is not being changed)
depending upon the context (the context here means that the
class that holds the function of a hierarchy of classes)

Is This Answer Correct ?    18 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

872


What are the various types of stl containers?

963


What is a stl vector?

868


What are the different types of stl containers?

903


Define stl.

1061


In what scenario does the Logical file and Physical file being used?

2581


help me i need a c++ program which takes sequesnce of characters and outputed sequence of their token taypes, work same compiler in lexical analysis phase

2173


What is stl in oop?

970


Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.

2411


If P is the population on the first day of the year, B is the birth rate, and D is the death rate, the estimated population at the end of the year is given by the formula: The population growth rate is given by the formula: B – D Write a program that prompts the user to enter the starting population, birth and death rates, and n, the number of years. The program should then calculate and print the estimated population after n years. Your program must have at least the following functions: 1. growthRate: This function takes its parameters the birth and death rates, and it returns the population growth rate. 2. estimatedPopulation: This function takes its parameters the current population, population growth rate, and n, the number of years. It returns the estimated population after n years Your program should not accept a negative birth rate, negative death rate, or a population less than 2. please answer my question ....

2091


What is a standard template library (stl)?

886


totoo po ba ang manga aliens!

2570


What do stl stand for?

892


When did c++ add stl?

974


How stl is different from the c++ standard library?

887