Can you have a constructor in abstract class?
Answer Posted / sumit
But you can create constructor in an abstract class.
and whenever you careate object of class implementing
abstarct class, constructor of te abstract class runs.
| Is This Answer Correct ? | 108 Yes | 13 No |
Post New Answer View All Answers
What is oop in java?
What does flag mean in java?
What is better - 'bit-shift a value' or 'multiply by 2'?
What are the classes of java?
What Is Query Throttling in java?
What are encapsulation, inheritance and polymorphism?
What is a for loop in java?
What are the benefits of operations in java?
Give me some null interfaces in java?
What is a singleton factory?
What’s the difference between the methods sleep() and wait()?
Which programming language is best in future?
Name some classes present in java.util.regex package.
What are thread groups?
What are the types of exceptions?