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


Please Help Members By Posting Answers For Below Questions

What do heavy weight components mean in java programming?

519


What happens if a constructor is declared private?

529


How many types of memory areas are allocated by JVM in java?

588


What is the final blank variable?

584


What are java packages?

582






What are access specifiers in java ?

588


Can a static block throw exception?

649


Which software is used for java programming?

550


What is the difference between a vector & an array list?

674


What does jre stand for?

602


What is maximum size of arraylist in java?

490


What is default switch case? Give example.

574


What is the benefit of abstract class?

513


What is the collection interface?

584


Can java object be locked down for exclusive use by a given thread?

582