74.3k views
3 votes
When the compiler binds resides in the same class as the call itself, this is

A) local
B) safe
C) static
D) dynamic
E) None of these

User Mrroboaat
by
7.2k points

1 Answer

5 votes

Final answer:

The term that describes when a compiler binds a method call in the same class as the call is static binding. Static binding is determined at compile time, unlike dynamic binding which is assessed at runtime.

Step-by-step explanation:

When the compiler binds a method call in the same class as the call itself, the correct term to describe this binding is static binding. This type of binding, also known as early binding, occurs at compile time, where the method that will be called is determined based on the compile-time type of the object. This is in contrast to dynamic binding, which is determined at runtime based on the actual type of the object.

User OzzyTheGiant
by
8.4k points