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
What is t in parametric equations?
What is Mutex (Mutual Exclusion Object) ?
Can you call one constructor from another if a class has multiple constructors?
Can we have try without catch block?
Is empty .java file name a valid source file name?
explain different ways of using thread? : Java thread
What is numeric function?
What does java ide mean?
Explain about anonymous inner classes ?
What is meant by data hiding/encapsulation?
What is unicode with example?
Explain tree set and its features?
Are constructors methods?
Explain where variables are created in memory?
Differentiate between == and equals().