x

Choose Country Code

x

Direction

x

Ask a Question

  • Ask a Question
  • Scan a Question
  • Post MCQ
  • Note: File extension must be of jpg, jpeg, png, bmp format and file size must not exceed 5 MB
x

Ask a Question

x

x
x
x
Hire a Tutor

Answers and Solutions

What's Your Question?
Answer

Thus, a programmer can use operators with user-defined types as well. Overloaded operators are functions with special names: the keyword "operator" followed by the symbol for the operator being defined. Like any other function, an overloaded operator has a return type and a parameter list.

Answer

Operator Overloading is one of the concept of Compile Time Polymorphism. The Operator is insisted to do another work (or) to overloaded to do some other work is called as Operator Overloading. For Example, '+' is used to add two numbers in C (or) C++, but the same is also used for String Concatenation also.

Answer

C++ allows you to specify more than one definition for a function name or an operator in the same scope, which is called function overloading and operator overloading respectively.

Answer

Operator overloading (less commonly known as ad-hoc polymorphism) is a specific case of polymorphism (part of the OO nature of the language) in which some or alloperators like +, = or == are treated as polymorphic functions and as such have different behaviors depending on the types of its arguments.

Answer

simply we can use operator to add two objects in oops . its a really good thing to do with operators .

Answer

normally each operator has a predefined behaviour and operates with basic type of operands. when we want operator to act upon objects we need to write a special function in a program to specify how an operator should act upon operands ie. objects. this is called as an operator overloadind....

Post Answer and Earn Credit Points

Get 5 credit points for each correct answer. The best one gets 25 in all.

Post Answer