I read in Sebesta that static bound methods do not need to be stored in the CIR but i cant figure out why. If it is not stored in the CIR, how does the compiler know which statically bound method is being referred to and where it is stored?

1

There are 1 best solutions below

0
deets On

A static method can’t be overridden. So at compile time the Compiler already knows which code to invoke. Instead of having to defer to runtime resolution.