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?

Answers were Sorted based on User's Feedback



Difference between Superclass and Subclass?..

Answer / sathya


A subclass inherits all the properties of a Super class.
A Subclass can access all the methods, variables of super
class and not vice versa.
A Subclass extends a Super class.

Is This Answer Correct ?    110 Yes 22 No

Difference between Superclass and Subclass?..

Answer / janet

A super class is a class that is inherited where as sub
class is a class that does the inheriting.

Is This Answer Correct ?    58 Yes 16 No

Difference between Superclass and Subclass?..

Answer / 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

Difference between Superclass and Subclass?..

Answer / anjali saxena

The class from which another class is derived is called base class or super class. The class which is derived from base class is called sub class or derived class.

Is This Answer Correct ?    14 Yes 4 No

Difference between Superclass and Subclass?..

Answer / ah socheat

super class is a simple class that generally;
sub class is a class that inheritance from super class; and can use method or data type in super class(if method or datatype use as public);

Is This Answer Correct ?    13 Yes 7 No

Difference between Superclass and Subclass?..

Answer / amna arslan

*SUPER CLASS ENTITY*
the class from which another class is derived is called super class.
it also called a base class.
the older one is called a super class.
super class is a simple class.
*SUB CLASS ENTITY*
the class which is derived from super class is called sub class.
it is also called a derived class.
the newer one is called a sub class.
sub class is a class that inheritance from super class.

Is This Answer Correct ?    1 Yes 0 No

Difference between Superclass and Subclass?..

Answer / rohit kumar singh

In many of the cases an entity type has numerous sub grouping of its entities that are meaningfull . Let understand with an example . EMPLOYEE entity type may be grouped further into ... SECRETARY , MANAGER , ENGINEERand so on .
The set of entities in each of latter grouping is a subset of the entities that belongto the EMPLOYEE entity set .
We call each of these subgrouping a subclass of the EMPLOYEE entity type , and the EMPLOYEE entity type is the superclass gor each of these subclasses.

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More Core Java Interview Questions

Does set allows null in java?

0 Answers  


What is array and arraylist in java?

0 Answers  


What is a bufferedreader?

0 Answers  


What is the difference between static method and instance method in Java?

0 Answers   SwanSoft Technologies,


What is the static variable?

0 Answers  


How to split arraylist elements in java?

0 Answers  


What are File and RandomAccessFile classes?

2 Answers  


Which variables are stored in stack?

0 Answers  


What is the functionality of Webserver?

2 Answers  


What does java stand for?

0 Answers  


Explain how can you debug the Java code?

0 Answers   BirlaSoft,


What are the elements of java?

0 Answers  


Categories