answersLogoWhite

0

What is the advantages of overriding?

User Avatar

Vimal48

Lvl 1
15y ago
Updated: 8/17/2019

Overriding is a feature that is available while using Inheritance. It is used when a class that extends from another class wants to use most of the feature of the parent class and wants to implement specific functionality in certain cases. In such cases we can create methods with the same name and signature as in the parent class. This way the new method masks the parent method and would get invoked by default.

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

Make a sentence with the word overriding?

Your safety is our overriding consideration.


What are some advantages and disadvantages of combining your printer and scanner into a single device?

Using up less memory and space- an advantage. Disadvantage, on the other hand, would be overriding the system.


Is overriding a dynamic polymorphism in c plus plus or not?

In C++, overriding and function, method, or operator is a different thing than (dynamic) polymorphism, so overriding a polymorphic method is almost entirely possible.


What is the opposite of overriding?

The opposite of the gerund overriding would be approving or endorsing.(In the US Congress, the failure to override a veto is confirming it.)The adjective overriding (meaning of primary importance, overarching) has the opposites secondary, insignificant, negligible, or unimportant.


How can you end a veto?

by overriding the veto


What was first boycott was overriding on?

blacks


Is it possible to do method overloading and overriding at a time?

no we cannot do both at the same time because overloading requires different arguments and overriding dosenot


When the concept of method overriding is necessary?

concept of overriding is very important as due to overriding the derived class can use the function of the base class! when the function has same name and prototype in both the classes(base and derived) then the derived class can use the funtion of base class!


What power belongs on this list?

Overriding a presidential veto


What is a operator overriding in java?

Java does not support object overriding. It does support operator overloading by means of the "+" symbol which is used for both numeric addition as well as string concatenation.


Is it possible to implement method overriding in each and every type of inheritance?

Yes. Method Overriding is not possible without inheritance and it can be done in all possible types of inheritance.


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"