WebGlossary.info
Method
- A procedure associated with a message and an object. An object consists of data and behavior. The data and behavior comprise an interface, which specifies how the object may be utilized by any of various consumers of the object. Data is represented as properties of the object and behaviors are represented as methods of the object. For example, a
Window
object could have methods such as open
and close
, while its state (whether it is opened or closed at any given point in time) would be a property. In class-based programming, methods are defined in a class, and objects are instances of a given class. ← Wikipedia
- Previous term: Meteor
- Next term: Method overloading
- Random term: Scope