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 thread start?
How to overcome the exception object reference not set to an instance of object?
What is preflight request?
What do you mean by scope of variable?
What is stack example?
Which methods are used during serialization and deserialization process?
What about abstract classes in java?
What is extension method in java?
How we can skip finally block of exception even if some exception occurs in the exception block in java?
Can an interface be defined inside a class?
Can we catch more than one exception in single catch block?
What is a boolean field?
How do you create a reference in java?
Explain the difference between call by refrence and call by value?
How does compareto method work?