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 starvation?
What exactly is a .class file?
What is finalize()? Is finalize() similar to a destructor?
Wha is the output from system.out.println(“hello”+null); ?
What happens when heap memory is full?
How many ways can we create the string object?
What is a instance variable in java?
What are "class access modifiers" in Java?
Define Multiprogramming and Multiprocessing in java.
Does constructor return any value?
What is singletonlist in java?
What is ascii code?
What does nullpointerexception mean?
Why for each loop is used?
What are the limitations of procedural programming approach?