Method: add the implementation of warnUnitialisedMethod()