Declares a method in the interface part of the class if it isn't declared.