Is following functions are said to be overloaded?
int add(int a,int b)
char *add(int a,int b)
Answer Posted / ajay singh
No above function is not overloaded .... function over
loading can take place if the signature of the function is
different and the signature of the function do not include
the return type
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Why multiple inheritance is not allowed?
#include
What is static modifier?
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
Why is polymorphism used?
What is a class and object?
what's the basic's in dot net
Why is encapsulation used?
Why is polymorphism important in oop?
What is property in oops?
What is inheritance and how many types of inheritance?
#include
What is meant by oops concept?
INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?
what are the different types of qualifier in java?