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

What is Java Reflection API? Why it’s so important to have?

879


What do you mean by platform independence? What is an interface?

816


Why do we use regex?

796


If an object is garbage collected, can it become reachable again?

796


What are heap memory and stack memory and what are memory tables.

770


What are the main differences between the java platform and other platforms?

790


What is the main difference between java platform and other platforms?

736


Explain about method local inner classes or local inner classes in java?

800


How do you use spaces in java?

761


What happens if a try-catch-finally statement does not have a catch clause to handle an exception that is thrown within the body of the try statement?

899


How do you achieve polymorphism in java?

746


What an i/o filter?

753


What is an anonymous class in java?

822


how do I create a runnable with inheritance? : Java thread

769


Can we override singleton class?

759