What is operator overloading?

Answer Posted / hrpynux@gmail.com

Operator overloading is a compile-time polymorphism in which the operator is overloaded to provide the special meaning to the user-defined data type. Operator overloading is used to overload or redefines most of the operators available in C++. It is used to perform the operation on the user-defined data type

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is it possible to override private virtual methods?

746


What are base class, sub class and super class?

727


What is the use of interface?

778


Explain about Overloading vs Overriding ?

747


What is the difference between a class and an object?

1072


What is the @functionalinterface annotation?

703


What is meant by function overloading and function overriding?

775


Explain the concept of multiple inheritance (virtual inheritance). Write about its advantages and disadvantages?

781


What is early and late Binding?

754


What is the significance of encapsulation?

743


What does the keyword virtual represented in the method definition?

834


What is the difference between an Abstract class and Interface?

793


State some of the advantages of object oriented programming?

845


Describe inheritance and non-inheritance of a derived class?

677


What is Abstract method and how different from Virtual Method?

699