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

Is main is a keyword?

963


What is the difference between an if statement and a switch statement?

1122


Can we define private and protected modifiers for variables in interfaces?

1044


What is callable java?

943


What is command line used for?

1067


What is a pointer and does java support pointers?

969


How can you add and remove nodes in jtree?

993


Is java an ide?

941


Difference between linkedlist and arraylist.

1037


Can the garbage collection be forced by any means?

951


What is a method type?

963


Is java util list serializable?

905


What about main() method in java ?

987


Why is the main method declared static?

1093


Define how destructors are defined in java?

990