Answer:
Method overriding.
Step-by-step explanation:
In object-oriented programming (OOP) language, an object class represents the superclass of every other classes when using a programming language such as Java. The superclass is more or less like a general class in an inheritance hierarchy. Thus, a subclass can inherit the variables or methods of the superclass.
Basically, all instance variables that have been used or declared in any superclass would be present in its subclass object.
A class can inherit behavior from a parent but also define its own and override parent behavior. This is called method overriding.
Method overriding occurs when there are two (2) methods with the same method parameter and name. The parent class handles one of the methods while the other is in the child class.
Hence, method overriding allows a child class to define its own specific implementation of a method and override parent behavior.