What is operator overloading? Give Example
Answer Posted / riya piyush jain
Operator overloading (less commonly known as operator ad-
hoc polymorphism) is a specific case of polymorphism in
which some or all of operators like +, =, or == have
different implementations depending on the types of their
arguments. Sometimes the overloadings are defined by the
language; sometimes the programmer can implement support
for new types.
| Is This Answer Correct ? | 23 Yes | 1 No |
Post New Answer View All Answers
How can you overcome the diamond problem in inheritance?
What is static in oop?
write a program to find 2^n+1 ?
What type of loop is a for loop?
write a program using c++ to implement single contiguous memory mangement techniques.display the content of the main memory after yhe allocation of jobs and percentage of the wastage of the main memory
What is basic concept of oop?
What is byval and byref? What are differences between them?
Why is encapsulation used?
What are properties in oop?
what's the basic's in dot net
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?
Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer
What is abstraction with example?
Can you explain polymorphism?
What does it mean when someone says I oop?