How does a subclass override its inherited methods?

Defining the inherited method in the subclass and changing the behaviorSubclasses cannot override inherited methods

Defining the inherited method in the subclass and changing the behavior.