Method (computer programming): Difference between revisions

Content deleted Content added
Rheun (talk | contribs)
m typo correction
Dysprosia (talk | contribs)
Line 1:
[[Category:Object-oriented programming]]
In [[computer science]], a '''method''' is a [[subroutine|function or subroutine]] that is associated with a [[class (computer science)|class]] in [[object-oriented programming]]. Like a function in procedural languages, it may contain a set of program statements that perform an action, and (in most [[computer language]]s) can take a set of input arguments and can return some kind of result. The purpose of a method is to provide a mechanism for changing or accessing information stored in an [[object (computer science)|object]] of the class.