Final answer:
The correct answer is option c. A method that is overridden in a subclass must extend the functionality of the superclass by invoking the superclass method.
Step-by-step explanation:
The correct answer is option c. A method that is overridden in a subclass must extend the functionality of the superclass by invoking the superclass method.
When a method is overridden in a subclass, the subclass can provide a new implementation for that method. However, if the subclass wants to extend the functionality of the superclass method, it can invoke the superclass method using the super keyword. This allows the subclass to add additional functionality while still utilizing the original implementation from the superclass.
For example, consider a superclass Animal with a method makeSound(). If the subclass Dog wants to override the makeSound() method, it can provide its own implementation, but it can also invoke the makeSound() method from the superclass using super.makeSound(). This way, the Dog class can extend the functionality of the Animal class's makeSound() method.