Question OOP-ABS-0013
MediumCan an abstract class have a constructor?
- A.
Only in C++
- B.
No, never
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Abstraction and Interfaces question
Can an abstract class have a constructor?
Only in C++
No, never
Sign up free to see the answer and a step-by-step explanation.
Yes; it runs when a concrete subclass is created
Only if it has no methods