Explain about Superclass and Subclass?

Answer Posted / ravikiran(aptech mumbai)

super class is the one which will declare members and
methods and will allow all the subclasses to make use of them.

sub class is the class which inherits the mebes and methods
from the super class and declares it's own members as well.

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you calculate square roots?

581


Is alive in java?

508


Explain the significance of class loaders in bootstrap?

499


How is treeset implemented in java?

494


How do you create a bulleted list?

568






What is Java Shutdown Hook?

611


How do you reverse sort in java?

506


What happens if constructor is private?

566


What is the most important feature of java? What is an interface?

524


Explain restrictions for using anonymous inner classes?

589


Does java initialize arrays to zero?

510


List some features of the abstract class.

593


How do you access command-line arguments within the code?

573


What is bitwise complement?

502


How does enum work in java?

550