What is an abstract class?
Answers were Sorted based on User's Feedback
Answer / pranab dutta
An Abstract class serves as a template, so it must be
extended /subclassed. It contains a static data. It means a
class that is abstract may not be instantiated and its
constructor can?t be called. A class may be declared
abstract even if it has no abstract methods that prevents
it from being instantiated.
Is This Answer Correct ? | 4 Yes | 0 No |
Answer / guest
Hi...
Abstract class: U cannot instantiate an object of Abstract
class.An abstract class should having atleast one abstract
methoda and it should not final.
Is This Answer Correct ? | 5 Yes | 3 No |
Answer / shan
An abstrct class is a class which contains special property
than ordinary class.
An abstarct class contains atleast one abstract method
which will be left to its subclass to implement.
An abstract class defines some common properties to its
subclass
Is This Answer Correct ? | 3 Yes | 1 No |
Answer / janet
An abstract class is a class designed with implementation
gaps for subclasses to fill in and is deliberately
incomplete.
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / prasviji143@gmail.com
abstract class is an incomplete class which contains incomplete and complete methods.
incomplete methods contains only the declaration and ended with semicolon (; )
To access the incomplete methods we need create a concrete class with the help of extends keyword.
In concrete class there will be method definitions for incomplete methods.
abstract class is known as superclass and concrete class as subclass.
In concrete class we can create the object and we can call the incomplete methods and execute the program.
Is This Answer Correct ? | 2 Yes | 1 No |
Answer / sundar m
Abstract class is a restricted class that cannot be used to create objects
It is the class which the "abstract" keyword is used to create the abstract class and this was implemented for the user simplicity and the abstract method cannot contain the body
The abstract class must be inherit from another class
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / ms
an abstract class is one which only gives the body of the
class containing the methods with out any
implementation.the abstract methods and the abstract
objects cannot be instantiated
Is This Answer Correct ? | 0 Yes | 3 No |
If a method is declared as protected, where may the method be accessed?
What is difference between overloading and overriding in java?
What type of variable is gender?
What is difference between final and finally in java?
what methods would you overwrite in java.lang.object class?
What is callablestatement? How you can call stored procedure to pass in parameter?
What is role of void keyword in declaring functions?
Can we create an object if a class doesn't have any constructor ( not even the default provided by constructor ) ?
Is there a case when finally will not execute?
What are the difference between string, string builder, and string buffer in java?
Why wait and notify methods are declared in object class?
What are the limitations for static method?