Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is mean by overriding in which situation we wil use?

Answer Posted / shahbaz ali

According to J2ee Compleet reference java:
I Think the answer is that
Overriding means the : In inheritance If we Declare the
(Public of default) Method in the superclass Similarly we
declare the method with the same name ,Same type,same
number of parameters.but the Body of the method May
different When We Instansiate child class and access it
then child's method will called if u want to call super's
overriden method then use the [super()] method to access it
in child for this read [Java compleete reference's
Chapter#8] u will find reasonable answer

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference in between cpp and java? Can u explain in detail?

1034


Is java free for commercial?

871


What is the console in java?

1097


What are decalarations?

1067


If A Class Is Declared Without Any Access Modifiers, Where May The Class Be Accessed?

1128


What is better- service oriented or batch oriented solutions?

2156


How do you replace a string in java?

964


What is the difference between Array and Hash Table?

991


What is javac in java?

957


What are the differences between stringbuffer and stringbuilder?

1008


What was java originally called?

910


What is the primary benefit of encapsulation?

1019


What is a blocking method in Java?

1150


What is an array length?

866


how to create multithreaded program? : Java thread

902