answersLogoWhite

0


Best Answer

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

14y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

11y ago

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()

{

...

}

...

}

This answer is:
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
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 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.


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"


How do you override functions in c?

Not possible in C, only in C++


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 is auto in turbo c?

Keyword.


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


How do you play Simpson theme on keyboard?

here it is C,E,F SHARP,A,G,E,C,A,F SHARP,F SHARP,F SHARP,G,A SHARP,C,C,C,C


What is new keyword in c?

enum, void and const are relatively new keywords in Cnew, on the other hand, isn't a keyword in C


What is foreign keyword in java?

There is no "foreign" keyword in Java, however, there is a native keyword that declares native methods in a native language, such as C or C++.For full list of keywords in Java see related question.