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

Explain purpose of sleep() method in java?

614


What is toarray method in java?

558


What is independent and dependent variables in research?

468


What is intern method in java?

580


What is the meaning of flag day?

537






what is session in java?

744


What are the different types of data structures in java?

489


Explain the importance of throwable class and its methods?

567


What about interthread communication and how it takes place in java?

541


What is an object in java?

557


When does a class need a virtual destructor?

528


Explain the features of interfaces in java?

554


What is an inner class in java?

523


Can long be null in java?

542


explain what is transient variable in java?

624