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

Can a class have multiple constructors?

1062


Can we overload destructor in java?

995


what is recursion in java

1181


How do you start a new line in java?

987


What is a priority queue java?

998


What is a nested list?

968


List types of storage classes in java?

1154


What is the properties class in java programming?

1006


How many types of voids are there?

993


How to perform selection sort in java?

1002


Difference between predicate, supplier and consumer ?

1064


How many types of equations are there?

1020


Can we have multiple classes in single file ?

1070


What function extracts specified characters from a string?

1006


Given a singly linked list, determine whether it contains a loop or not without using temporary space?

988