can abstract class have constructor how can you achive
this ?
Answer Posted / bhargava
You cannot crate the constructor for an abstract class
directly. But you can create constructor for subclass for
an abstract class by making new class sub class for the
abstract class.
| Is This Answer Correct ? | 1 Yes | 7 No |
Post New Answer View All Answers
Explain abstract class in java?
Can we declare array without size in java?
What is a parameter used for?
What is the final keyword denotes?
What do you meant by active and passive objects?
Can we override a variable in java?
What is difference between array and vector?
What is array class in java?
What is final keyword in java? Give an example.
Which browsers work with java?
Can you override private or static method in java?
How many arguments can be passed to main ()?
What is replaceall in java?
Can finally block be used without a catch?
Why we use protected in java?