Difference between Superclass and Subclass?

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why can't we make a class private in java?

545


What is thread start?

534


How many characters is 16 bytes?

549


What is the meaning of course?

596


Is boolean a wrapper class in java?

616






What's the difference between comparison done by equals method and == operator?

552


Can we override tostring method in java?

539


What is the default access specifier for variables and methods of a class?

578


What is locale in java?

587


How you can force the garbage collection?

548


Do loops java?

564


Is integer a class?

573


What is the name of the java compiler?

540


What is a void method?

531


What are the types of web technologies?

547