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

What is boolean in java?

507


Difference between this() and super() ?

572


What is meant by data hiding/encapsulation?

569


Does java trim remove newline?

538


Explain thread in java?

658






What does the string method compareto () do?

535


What is the difference between checked exception and unchecked exception?

524


What is proper subset?

535


What does sizeof return?

553


Why is multiple inheritance not supported in java?

557


What is parameters example?

549


What is difference between static class and singleton pattern?

475


What is tcp ip in java?

585


Can we override protected method in java?

578


Explain java code for recursive solution's base case?

569