Question OOP-INH-0077
HardWhich is a sign that inheritance is being misused?
- A.
A subclass calls super()
- B.
A subclass overrides toString()
- 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
Which is a sign that inheritance is being misused?
A subclass calls super()
A subclass overrides toString()
Sign up free to see the answer and a step-by-step explanation.
A subclass adds new methods
A subclass throws UnsupportedOperationException for inherited methods