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 polymorphism in oop example?
What does I oop mean?
What is the oops and benefits of oops programming?
What is polymorphism explain its types?
What is the importance of oop?
Why is destructor used?
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
What is abstraction encapsulation?
What is object in oop with example?
What is this pointer in oop?
Why is abstraction needed?
What is interface in oop?
What is destructor give example?
What is the real time example of encapsulation?
Why multiple inheritance is not possible?