Answer Posted / rasool
Ningu, its not necessary that the functions 'must' differ
in the :No of parameters passed
:order of the parameter passed
:the type of the parameter.
say, I have a function Add(int a , int b)
I still can have a function Add(int*a,int*b).
Function overloading is type of polymorphism in C++.i.e
multiple forms of the same function(methods).Function
overloading comes under compile time polymorphism.
Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What is the benefit of c++?
How can a called function determine the number of arguments that have been passed to it?
What is the difference between a declaration and a definition?
Can you use the function fprintf() to display the output on the screen?
What is lazy initialization in c++?
What is c++ and its uses?
Given the following seqment of code containing a group of nested if instructions: y = 9; if ((x==3) || (x == 5)) y++; else if (x == 2) y *= 2; else if (x == ) y-= 7; else y = 8; if the value of x is 4 before the nested IFs are executed, what is the value of y after the nested IFs are executed?
What are the advantages of early binding?
Which software is used to run c++ program?
What is constructor in C++?
How do you add an element to a set in c++?
What does the nocreate and noreplace flag ensure when they are used for opening a file?
If a base class declares a function to be virtual, and a derived class does not use the term virtual when overriding that class, is it still virtual when inherited by a third-generation class?
What are proxy objects in c++?
What is a unnitialised pointer?