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

Difference between Superclass and Subclass?

Answer Posted / rizwan

If you want to reuse the code of one class then your new
class shuld 'extend' the older one.so that you will have
all the code present of the older class oin the new one.

The older is called a parent/super class.
the newer one is called child/sub class.

Is This Answer Correct ?    35 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between the font and fontmetrics classes in java programming?

1025


How many types of operators are there?

929


What are the advantages of java?

929


What is method overloading in java ?

1027


Can we create constructor in abstract class ?

987


How is tree Mirroring implemented?

1001


How do you calculate roots in java?

1012


Difference between error and exception

5901


Why is singleton not thread safe?

1009


What is a function in programming?

982


Does java allow overriding static methods ?

1055


Why set is used in java?

952


Is java code slower than native code?

1002


Difference between current previous versions of Java?

975


Can a class be private in java?

942