|
|
От: |
Grief
|
Grief-postal.narod.ru |
| Дата: | 16.06.07 08:34 | ||
| Оценка: | 1 (1) | ||
Let C be the class of objectref. The actual method to be invoked is selected by the following lookup procedure:
* If C contains a declaration for an instance method with the same name and descriptor as the resolved method, and the resolved method is accessible from C, then this is the method to be invoked, and the lookup procedure terminates.
* Otherwise, if C has a superclass, this same lookup procedure is performed recursively using the direct superclass of C ; the method to be invoked is the result of the recursive invocation of this lookup procedure.
* Otherwise, an AbstractMethodError is raised.