Which of the following can override their inherited methods?

Both instances and subclassesInstances

Both instances and subclasses.