Change visibility of a method.