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

Explain why wait(), notify() and notifyall() methods are in object class rather than in thread class?

547


What is map in java?

510


What does pointer mean?

537


What is lastindexof in java?

537


What's the purpose of static methods and static variables?

585






What is the different types of functions?

549


What does method mean?

504


How can we make a class singleton?

570


What is a null check?

531


When should I use a singleton?

545


When the constructor of a class is invoked?

580


What is use of a abstract variable?

528


What are the features of junit?

589


How does queue work in java?

521


What super () does in java?

476