Object-Oriented Programming (OOP)

What is Method overriding primarily used for?

Correct answer

C. The ability of a subclass to provide a specific implementation of a method already defined in its parent class.

Explanation

Method overriding refers to the ability of a subclass to provide a specific implementation of a method already defined in its parent class.