Question OOP-ABS-0072
HardWhy might an abstract class have a constructor?
- A.
It can't have one
- B.
To initialise fields shared by all subclasses
- 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
Why might an abstract class have a constructor?
It can't have one
To initialise fields shared by all subclasses
Sign up free to see the answer and a step-by-step explanation.
To create abstract objects
To make it concrete