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 Overriding and how can it be used?

Answer Posted / pranab dutta

If a class defines a method using the same name, return
type, and arguments in its super class, then it is called
Overriding. Methods are overridden to make them more
public. The method in the class overrides the method in the
super class.
When the method is invoked for an object of the class, it
is the new definition of the method that is called, and not
the method definition from super class.

Is This Answer Correct ?    46 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is static import in java?

1036


Can we create an object of static class in java?

1061


What is a consumer in java?

1076


what is thread in Java ?

1211


What are the disadvantages of using inner classes?

1285


What is java life cycle?

1048


In a container there are 5 components. I want to display the all the components names, how will you do that one?

1084


What one should take care of, while serializing the object?

959


What methodology can be utilized to link to a database?

1016


What is an enumeration?

1122


How do you write a scanner class in java?

1066


How do you check if a string contains only numeric digits?

1180


What is wrapper class html?

995


What is data string?

1052


How to create an immutable class?

1174