What is operator overloading? Give Example
Answer Posted / msn
Making an operator doing different operation other than
the normal one is termed as operator overloading..
Say for example Operator + is normally used to add numbers
but we can add another function concatenate two strings
| Is This Answer Correct ? | 9 Yes | 0 No |
Post New Answer View All Answers
What is this pointer in oop?
Why do we use polymorphism?
What is the difference between static polymorphism and dynamic polymorphism?
There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.
Why do we use encapsulation in oops?
What is an example of genetic polymorphism?
What is inheritance write a program to show use of inheritance?
What is encapsulation oop?
What are oops functions?
What is destructor in oop?
if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?
Can main method override?
What is overloading and its types?
What causes polymorphism?
What does sksksk mean in text slang?