Which of the following can override their inherited methods?

Both instances and subclassesOnly instancesOnly subclassesNeither instances nor subclasses

Both instances and subclasses.