Is following functions are said to be overloaded?
int add(int a,int b)
char *add(int a,int b)
Answer Posted / arunkumar995
Function overloadig can not be achive only chaining the
return type.We must havv to change the aruments.
int add(int a,int b)
char*add(int a,int b)
one think that return type not make important role in
function overloading.In fun Overloading must effect on the
arguments.
Thus we say the given [int add(int a,int b)
char*add(int a,int b)]is not function overloaded.
Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
What is the types of inheritance?
What is class and example?
What is the purpose of enum?
Why interface is used?
What is inheritance write a program to show use of inheritance?
What are the benefits of polymorphism?
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)
What are the 4 main oop principles?
what are the realtime excercises in C++?
Is data hiding and abstraction same?
What is difference between class and object with example?
Is oop better than procedural?
What is super in oop?
What causes polymorphism?
Is enum a class?