Product Site

5.1.4.26. unsetMethod (Private Method)

Cancels the effect of all previous setMethods for method methodname. It also removes any method methodname introduced with enhanced when the object was created. If the object has received no setMethod method, no action is taken.

Notes:
  1. The unsetMethod method is a private method (see Section 4.2.8, “Public, Package-Scope, and Private Methods”) with the additional restriction that it can only be called
    • from an instance method of the receiving object itself, or
    • from a class method in the receiving object's inheritance chain.
  2. The unsetMethod method is a protected method.