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
Which collection is best for sorting in java?
How many ways can we create singleton class?
Define inheritance with reference to java.
What is the significance of java packages?
Give few examples of final classes defined in Java API?
How arrays are stored in memory in java?
How do you read a char in java?
Can we declare a static variable inside a method?
Can we nested try statements in java?
What is difference between null and void?
Define Multiprogramming and Multiprocessing in java.
If I only change the return type, does the method become overloaded?
What are the different types of java?
What is Hierarchy of exception?
What interface is extended by awt event listeners?