Object (object-oriented programming)



         


An object is a unique concrete instance of an abstract data type (that is, a conceptual structure including both data and the methods to access it) whose identity is separate from that of other objects, although it can "communicate" with them via messages.

In some occasions, some object can be conceived of as a sub program which can communicate with others by receiving or giving instructions based on its, or the other's, data or methods. Data can consist of numbers, literal strings, variables, references. An object is often thought of as a region of storage.

One of the benefits claimed for object-oriented program is that it can model real life problems "naturally" by a sort of simulation. This type of system is usually constructed in a class-based language, where an instance is an "instantiated" object of a particular class. Each instance is a variation on a general theme, one which is defined by the parent class. For example, my dog "Killer" could be described as an instance of a dog (where dogs are a class of animal).

[Top]

See also

This article is a stub. You can help BambooWeb by .







  View Live Article   This article is from Wikipedia. All text is available under the terms of the GNU Free Documentation License