Domanda di colloquio di UBS

What does the "static" keyword mean?

Risposta di colloquio

Anonimo

27 feb 2018

The static keyword denotes that a member variable, or method, can be accessed without requiring an instantiation of the class to which it belongs. In simple terms, it means that you can call a method, even if you've never created the object to which it belongs!