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

Differece between class and generic class?

799


What is difference between public static and void?

703


What is the replace tool?

774


Can we define private and protected modifiers for variables in interfaces?

824


Explain about class in java?

844


What is difference between static class and singleton pattern?

692


How can you set an applet’s height and width as a percentage?

716


What is the difference between overriding & overloading?

767


How can we access some class in another class in java?

774


In which order the iterator iterates over collection?

785


Is treeset sorted in java?

775


What methods are used in Servlet?Applet communication?

1931


Explain about sets?

772


What is the difference between == and === javascript?

817


What are constants and how to create constants in java?

755