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
What is the purpose of assert keyword used in jdk1.4.x?
What does the ‘static’ keyword mean? Is it possible to override private or static method in java?
What is an example of a keyword?
Explain what is encapsulation?
What do you mean by scope of variable?
String and stringbuffer both represent string objects. Can we compare string and stringbuffer in java?
How does hashmap work in java ?
How to make a class or a bean serializable?
How we can skip finally block of exception even if some exception occurs in the exception block in java?
Is upper case in java?
What are the 2 types of java programs?
What is difference between variable declaration and definition?
How java is similar to c?
What are generic methods?
What is a line break example?