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
What are the 4 pillars of oop?
What is a function in oop?
What is abstraction oop?
Write a c++ program to display pass and fail for three student using static member function
What is the real time example of inheritance?
Can you inherit a private class?
How do you explain polymorphism?
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?
What is destructor in oop?
what is the sylabus for priliminaries?
What makes a language oop?
Why is encapsulation used?
What does it mean when someone says I oop?
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?
What is the difference between static polymorphism and dynamic polymorphism?