Question OOP-INH-0012
MediumAre constructors inherited in Java?
- A.
Only in abstract classes
- B.
Yes, always
- 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
Inheritance question
Are constructors inherited in Java?
Only in abstract classes
Yes, always
Sign up free to see the answer and a step-by-step explanation.
Only private constructors
No, but a subclass constructor calls a superclass constructor (explicitly or implicitly)