I think you have to make the method as private so from outside you will not be able to access the method. Therefore you cannot update.