Question: When should you override a method in a subclass? When the subclass needs a different implementation than the superclass None of the options are correct
When should you override a method in a subclass? When the subclass needs a different implementation than the superclass None of the options are correct Always so that the subclass has the right parameter types O Never because this defeats the purpose of inheritance When the subclass doesn't necessarily require the superclass' implementation
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
