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

Discuss 2D arrays.

594


Can a class with private constructor be extended?

476


which is advanced deep technology in java launched by the sun microsystem??? The answer is very logical If u need correct answer mail me at priya_gupta@gmail.com

3179


How will you initialize an Applet?

608


Is intellij better than eclipse?

530






Explain where variables are created in memory?

571


What is namespace in java?

530


can java object be locked down for exclusive use by a given thread? : Java thread

516


Explain method overloading?

562


What is gui programming?

507


How to perform quicksort in java?

555


What is the statements?

578


Why is string class considered immutable?

592


What are the main concepts of oops in java?

583


How are the elements of a gridbaglayout organized?

534