Question: Why would you override a method of a base class?
- to define a method that must be implemented in a derived class
- to define a custom implementation of an inherited member
- to define a method that must be implemented in a superclass only
- to define a class that can be inherited from
Answer: The correct answer of the above question is Option B:to define a custom implementation of an inherited member