Contents    Page-10    Prev    Next    Page+10    Index   

Static Method Lookup

In a static language, all of the methods defined for each class can be determined at compile time. Lookup of the called routine can then be done efficiently:

This takes only a few instructions more than an ordinary function call. This technique is used in C++.