what is the use of abstract class?

Answer Posted / rakesh

Java Abstract classes are used to declare common
characteristics of subclasses. An abstract class cannot be
instantiated. It can only be used as a superclass for other
classes that extend the abstract class. Abstract classes
are declared with the abstract keyword. Abstract classes
are used to provide a template or design for concrete
subclasses down the inheritance tree

Is This Answer Correct ?    18 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why java applets are more useful for intranets as compared to internet?

587


Can we use different return types for methods when overridden?

568


Is intellij better than eclipse?

553


Write a program based on Java script program.

652


Do you know how to reverse string in java?

593






What is nullpointerexception?

566


What are inner classes or non static nested classes in java?

714


What is the purpose of the runtime class in java programming?

575


What do you mean by ordered and sorted in collections in java?

558


What is the purpose of format function?

634


Explain about the performance aspects of core java?

564


Why is serialization required?

556


Which class cannot be a subclass in java?

552


What is generic type?

579


Explain the importance of join() method in thread class?

650