摘要 |
PROBLEM TO BE SOLVED: To execute the access limitation of a modularization structure and also to enable the transitional override of a method to be performed. SOLUTION: A class C dispatch table (C is a subclass of a super class S in a package P) first copies an S dispatch table, judges whether or not the S dispatch table is marked as public/protected for every method (m) declared as a local in C, checks the S dispatch table when marked and searches a public/ protected entry corresponding to a method having the same name as a method (m). When the entry exists, a corresponding entry of a C dispatch table is overridden. Further, a package private entry corresponding to the method having the same name as the method (m) is searched in the S dispatch table, and when the package private entry exists, a corresponding entry in the C dispatch table is overridden and marked as public/protected.
|