Method (computer Science)

Method (computer Science)

In object-oriented programming, a method is a subroutine (or procedure) associated with a class. Methods define the behavior to be exhibited by instances of the associated class at program run time. Methods have the special property that at runtime, they have access to data stored in an instance of the class (or class instance or class object or object) they are associated with and are thereby able to control the state of the instance. The association between class and method is called binding. A method associated with a class is said to be bound to the class. Methods can be bound to a class at compile time (static binding) or to an object at runtime (dynamic binding).

Read more about Method (computer Science):  Example, Abstract Methods, Accessor and Mutator Methods, Class Methods, Conversion Operator Methods, Hook Methods, Overloaded Methods, Overridden Methods, Special Methods, Static Methods, Virtual Methods

Famous quotes containing the word method:

    Protestantism has the method of Jesus with His secret too much left out of mind; Catholicism has His secret with His method too much left out of mind; neither has His unerring balance, His intuition, His sweet reasonableness. But both have hold of a great truth, and get from it a great power.
    Matthew Arnold (1822–1888)