FAQ 5.06 What is an object?

graphics/new_icon.gif

It depends on who you are.

To a programmer, an object is a region of storage with associated semantics. To a designer, an object is any identifiable component in the problem domain. In the following diagram recRoomTV is an object of class TV.

After a declaration such as int i;, i is said to be an object of type int. In OO/C++, an object is usually an instance of a class.

Here is the UML notation for an object:

graphics/05fig02.gif



C++ FAQs
C Programming FAQs: Frequently Asked Questions
ISBN: 0201845199
EAN: 2147483647
Year: 2005
Pages: 566
Authors: Steve Summit

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net