Difference between Superclass and Subclass?

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is 0 an irrational number?

845


Explain inheritance in java?

802


What is hash table in java?

709


What is a default method?

784


What is the purpose of nested class in java?

844


Explain importance of throws keyword in java?

794


What is api data?

797


Which is bigger double or float?

764


What is the differences between heap and stack memory in java? Explain

773


What are the two types of java?

792


Is void a data type in java?

762


Where can I find jdk in my computer?

714


What is a linkedhashmap java?

800


What is += mean in java?

797


what is the role of xml in core java?? and how we can use it?? can somebody give a sample program with explanation and from where i can read more about xml?????

2054