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...

IS method overriding is Duplication of Methods?

Answer Posted / amol

No. In method overriding the behaviour of overrided method
is different. The subclass override only those methods,
which has different behaviour than superclass else alawys
use all the methods of superclass, which is better than
making a lot duplication by defining another class for same
methods of superclass.

Is This Answer Correct ?    29 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are static methods?

1106


What do you understand by casting in java language?

1076


What is meant by object?

1057


What is the difference between an array and an array list?

1078


How do you clear an arraylist in java?

1020


How will you initialize an Applet?

1202


Is there any limitation of using inheritance?

1151


What are the types of literals?

1268


What is the difference between length and length() method in java?

1172


can any body body expalin best definitions & best real time exaples for opps concepts.

2319


Tell me are there implementations for sorting and searching in the java libarary?

1085


Is passing by reference faster?

1047


State some advantages of java?

1284


What is the basic difference between string and stringbuffer object?

1142


What is the purpose of void class?

1109