Aggregate_Composite_Data1.htm |
Aggregate data type is a complex data structure, contains
series of data, and which can be referenced as a single entity based on
some kind of similarities o a relationship. The data type like string,
arrays, struct, and classes are aggregated data type. The composed aggregation, refers to life-time of the owner of the aggregated data types and which can enforce the life of the member objects. |
Aggregate and Composite Data : overview using C/C++ plugging in
Eclipse Coe used:
|
I am going to use Eclipse in a workstation (manas8x)
Now add a file
|
Add the codes, given at the beginning of this document
|
To show the composite effect ,under an owner's control, "life cycle
of objects controlled as one unit, destroying one will destroy all ".
|