Indicates whether the class can override the given method. This is determined by searching the class's methods for a prototype matching the given method. If one is found, or if the given method cannot be overridden for other reasons (for example, it is a final method), VARIANT_FALSE is returned, indicating that a call to OverrideMethod would result in uncompilable code.
Syntax
HRESULT CanOverride(
[in] IJavaMethod* pMethod,
[out, retval] VARIANT_BOOL* retval
);
Property CanOverride(pMethod As IJavaMethod) As Boolean
Parameters
pMethod
Reference to the method to be overridden.