Can you have a constructor in abstract class?
Answer Posted / sadiq
Yes. Abstract class can have constructor.
But abstract class cannot be instantiated,how we can call
constructor? Using super()(calls super class constructor) in
the subclass which extends abstract class.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Can we override constructor in java?
how to create daemon thread in java?
Why is the singleton pattern considered to be an anti pattern?
Explain tree set and its features?
how many types of Inheritance?
What is the difference between an argument and a parameter?
How do you get length in java?
what is the significance of listiterator in java?
What are the legal parameters?
What is bifunction in java?
Explain method local inner classes ?
What do you mean by aggregation?
What does string intern() method do?
What is the meaning of variable in research?
Is arraylist an object in java?