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 polymorphism in oop example?

507


What does I oop mean?

609


What is the oops and benefits of oops programming?

545


What is polymorphism explain its types?

672


What is the importance of oop?

603






Why is destructor used?

574


class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash

1685


What is abstraction encapsulation?

647


What is object in oop with example?

688


What is this pointer in oop?

545


Why is abstraction needed?

559


What is interface in oop?

655


What is destructor give example?

595


What is the real time example of encapsulation?

586


Why multiple inheritance is not possible?

590