answersLogoWhite

0

Operator Overloading is a Polymorphism concept. Standard unary and binary operators like (+, -, *, /, %, &, |, <<, >> ) have a predefined implementation that describes their behavior when applied on operands. However using operator overloading we can provide additional meanings to these operators.

For example we can add two integers using a + b. However the + operator cannot be used to add two objects for example two vectors. For this we need to overload the operator '+' so as to implement it toadd two vector objects.

refer related links for having a look at the example.

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

What is the Difference between override and new keyword in C?

An override is the specialisation of a virtual function. The new keyword instantiates an instance of an object in dynamic memory and returns a reference to that object (or null if the object could be instantiated). Both are used in C++, but not C.


What are the notes to play on the piano for the keyword "moonlight sonata"?

The notes to play on the piano for the keyword &quot;moonlight sonata&quot; are E-flat, C-sharp, and A.


What is abstarct class in C sharp?

This is like a tamplate. You make this kind of class and than later you can override it and put it to use.


Is in is used as a keyword in C language?

Neither "in" nor "is" is a keyword in C.


Is the keyword "c" included in the question?

Yes, the keyword &quot;c&quot; is included in the question.


What is the E flat equivalent of the keyword provided?

The E flat equivalent of the keyword provided is D sharp.


How do you override functions in c?

Not possible in C, only in C++


What is meaning of keyword in c language?

'Keyword' is a synonym for 'reserved word', it is not specific to C language.


How is hiding method different from overriding method in c sharp?

Hiding means a class cannot see the definition. Overriding implies that a class must see that to "override"


What are the guitar chord notes for the keyword "C major"?

The guitar chord notes for the keyword &quot;C major&quot; are C, E, and G.


What are the notes to?

A sharp G G E sharp G E sharp A sharp A sharp C C A sharp C E sharp G A G E sharp A sharp A sharp A sharp G E sharp C this is not on the Flute btw idk what instrument its on


What are the notes to fireflies?

A sharp G G E sharp G E sharp A sharp A sharp C C A sharp C E sharp G A G E sharp A sharp A sharp A sharp G E sharp C this is not on the flute btw idk what instrument its on