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
Why is destructor used?
What is object and class in oops?
What is static modifier?
What is multilevel inheritance?
What is class and example?
State what is encapsulation and friend function?
Can static class have constructor?
write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.
What is class and object in oops?
What is the real life example of polymorphism?
Prepare me a program for the animation of train
Why we use classes in oop?
What is byval and byref? What are differences between them?
what are the realtime excercises in C++?
write string class as your own class in java without using any built-in function