Computer Program Object

From GM-RKB
(Redirected from OO object)
Jump to navigation Jump to search

A Computer Program Object is a Computer Program Structure that contains both a Data Structure and one or more Data Operators/Object Methods.



References

2015

  • (Wikipedia, 2015) ⇒ http://en.wikipedia.org/wiki/instance_(computer_science) Retrieved:2015-2-13.
    • In object-oriented programming (OOP), an instance is a specific realization of any object. Formally, "instance" is synonymous with "object" as they are each a particular value (realization), and these may be called an instance object ; "instance" emphasizes the distinct identity of the object. The creation of a realized instance is called instantiation.

      In class-based programming, objects are created from classes by subroutines called constructors, and destroyed by destructors. An object is an instance of a class, and may be called a class instance or class object ; instantiation is then also known as construction. Not all classes can be instantiatedabstract classes cannot be instantiated, while classes that can be instantiated are called concrete classes. In prototype-based programming, instantiation is instead done by copying a prototype.

      An object may be varied in a number of ways. Each realized variation of that object is an instance. Each time a program runs, it is an instance of that program. That is, it is a member of a given class that has specified values rather than variables. In a non-programming context, you could think of "dog" as a type and your particular dog as an instance of that class.

      An important distinction is between data type (interface) and class (implementation).

      The meaning of the term type in computer science is similar to the meaning of the word "type" in everyday language. For example, a barman can ask a client, what type of beverage does he/she want? Coffee, tea, beer? A particular cup of coffee that the client receives is in the role of an instance. Two cups of coffee would form a set of two instances of (the type) coffee.

2013

  1. Oppel, Andy (2005). SQL Demystified. McGraw Hill. p. 7. ISBN 0-07-226224-9. 

1996

  • (Wall et al., 1996) ⇒ Larry Wall, Tom Christiansen, and Randal L. Schwartz. (1996). “Programming Perl, 2nd edition." O'Reilly. ISBN:1565921496
    • QUOTE: object: Something that "knows" what kind of thing it is, and what it can do because of what kind of thing it is. Your program can request an object to do things, but the object gets to decide whether it wants to do it or not.