What is Overriding and how can it be used?
Answer Posted / ashish sharma
overriding comes with two class ( base and drived class )
function in the base class is like
public virtual void Display();
function in the drived class is like
public override void Display();
this function overrides the base class .
Is This Answer Correct ? | 9 Yes | 2 No |
Post New Answer View All Answers
What is a substring of a string?
What is the purpose of methodology?
What is port number in java?
What is the difference between the boolean & operator and the && operator in java programming?
Why are parameters used in functions?
What is scope & storage allocation of static, local and register variables? Explain with an example.
How do you decide when to use arraylist and linkedlist?
What happens if we override private method?
How do you do descending order in java?
Is oracle java 11 free?
What is the purpose of a transient variable?
How do you achieve polymorphism in java?
What is nested loop? What is dangling else condition in it?
What is the difference between menuitem and checkboxmenu item?
What is the advantage of preparedstatement over statement?