- 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
Windowobject could have methods such asopenandclose, 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
This term is sponsored by: your name/company?
- Previous term: Meteor
- Next term: Method overloading
- Random term: GRASP (webglossary.info/random 🎲)