摘要 |
PROBLEM TO BE SOLVED: To obtain a method lookup mechanism which not only makes access limitation assumed by a modularized structure to be faithfully followed by also enables the transitional override of a method to be performed. SOLUTION: When a method (m) is called out on a target object, a solved method (m) in a solved class is checked and whether or not it is declared as public/protected is judged. When the solved method is not declared as public/ protected, a path stack is constructed. The path stack offers a list of class hierarchical structures between the target object and the solved class. When the path stack is constructed, the mounting of a method (m) to be called out is decided in response to the method calling-out according to its use.
|