Showing posts with label Objects. Show all posts
Showing posts with label Objects. Show all posts

Sunday, 9 June 2013

Objects and Classes

Objects

In object-oriented programming we create software objects that model real world objects. Software objects are modeled after real-world objects in that they too have state and behavior. A software object maintains its state in one or more variables. A variable is an item of data named by an identifier. A software object implements its behavior with methods. A method is a function associated with an object.
Definition: An object is a software bundle of variables and related methods.