Answer
Based on ISO Standard for C++ Programming Language, the constructs in a C++ program create, destroy, refer to, access, and manipulate objects.
In C++ the objects are the regions of storage (ex. memory space). However, a function is not an object, despite of whether or not it occupies storage in the way that objects do.
An object can be create created by a
1. Definition
2. New-expression
3. Implementation
The properties of an object are determined when the object is created. An object has a name and a storage period also know as lifetime.
Any object has a type. The term object type refers to the type with which the object is created.
Some objects are polymorphic meaning the implementation generates information associated with each such object that makes it possible to determine that object’s type during program execution. For other objects, the interpretation of the values found therein is determined by the type of the expressions.
Based on ISO Standard for C++ Programming Language, the constructs in a C++ program create, destroy, refer to, access, and manipulate objects.
In C++ the objects are the regions of storage (ex. memory space). However, a function is not an object, despite of whether or not it occupies storage in the way that objects do.
An object can be create created by a
1. Definition
2. New-expression
3. Implementation
The properties of an object are determined when the object is created. An object has a name and a storage period also know as lifetime.
Any object has a type. The term object type refers to the type with which the object is created.
Some objects are polymorphic meaning the implementation generates information associated with each such object that makes it possible to determine that object’s type during program execution. For other objects, the interpretation of the values found therein is determined by the type of the expressions.