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
Can we sort set in java?
What is append in java?
When should I use singleton?
How do you allocate memory to object?
Are maps ordered java?
Is it possible to override private or static method in java?
What is set string?
What are the advantages of arraylist over arrays?
What do you understand by abstract classes?
What are methods?
How do you get length in java?
What is the meaning of variable in research?
What do you mean by access modifier?
What are static initalizers in java ?
Is it possible to compare various strings with the help of == operator? What are the risks involved?