Question: Why would you override a method of a base class?

  1. to define a method that must be implemented in a derived class
  2. to define a custom implementation of an inherited member
  3. to define a method that must be implemented in a superclass only
  4. 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