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

Still curious? Ask our experts.

Chat with our AI personalities

CoachCoach
Success isn't just about winning—it's about vision, patience, and playing the long game.
Chat with Coach
SteveSteve
Knowledge is a journey, you know? We'll get there.
Chat with Steve
TaigaTaiga
Every great hero faces trials, and you—yes, YOU—are no exception!
Chat with Taiga
More answers

If you have a virtual class, it means that you can override its methods withing inhering classes. For instance,

...

virtual class myVirtualClass

{

...

int getValue()

{

...

}

...

}

class myInheringClass : myVirtualClass

{

...

int override getValue()

{

...

}

...

}

User Avatar

Wiki User

12y ago
User Avatar

Add your answer:

Earn +20 pts
Q: What is override keyword in c sharp?
Write your answer...
Submit
Still have questions?
magnify glass
imp