I am reading the book The Java Programming Language. In the chapter which explains overriding method, it says:
Making an override met
A class's "Contract" is it's public interface or at least the interface if presents to classes other than itself.
This means that it includes any elements (methods, fields, constructors, etc.) that other classes can use.