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


Please Help Members By Posting Answers For Below Questions

What is the types of inheritance?

602


What is class and example?

568


What is the purpose of enum?

581


Why interface is used?

552


What is inheritance write a program to show use of inheritance?

611






What are the benefits of polymorphism?

622


design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)

6149


What are the 4 main oop principles?

685


what are the realtime excercises in C++?

2333


Is data hiding and abstraction same?

567


What is difference between class and object with example?

562


Is oop better than procedural?

572


What is super in oop?

599


What causes polymorphism?

575


Is enum a class?

604