Method (computer Science) - Static Methods

Static Methods

Static methods neither require an instance of the class nor can they implicitly access the data (or this, self, Me, etc.) of such an instance. A static method is distinguished in some programming languages with the static keyword placed somewhere in the method's signature.

In statically typed languages such as Java, static methods are called "static" because they are resolved statically (i.e. at compile time) based on the class they are called on and not dynamically as in the case with instance methods which are resolved polymorphically based on the runtime type of the object. Therefore, static methods cannot be overridden.

Read more about this topic:  Method (computer Science)

Other articles related to "methods, static methods":

Method (computer Science) - Class Methods
... Class methods are methods that are called on a class (compare this to class instance methods, or object methods) ... C++, Java), class methods are synonymous with static methods (see section below), which are called with a known class name at compile-time ... this cannot be used in static methods ...

Famous quotes containing the word methods:

    A writer who writes, “I am alone” ... can be considered rather comical. It is comical for a man to recognize his solitude by addressing a reader and by using methods that prevent the individual from being alone. The word alone is just as general as the word bread. To pronounce it is to summon to oneself the presence of everything the word excludes.
    Maurice Blanchot (b. 1907)