Thursday, April 9, 2015

What is an object?

A region of storage with associated semantics.


After the declaration int i; we say that “i is an object of type int.” In OO/C++, “object” usually means “an instance of a class.” Thus a class defines the behavior of possibly many objects (instances).

No comments:

Post a Comment