Array of object: – C++ allows the user to create an array of any data type including user defined data type. Thus an array of variables of a class data type can also be defined, and such variables are called an array of object. An array of object is often is use to hand a group of object, which reside contiguously in the memory.

An array of object is stared in memory in the same way as an array of variable created at compile time. User can store multiple array of object as in the same way.

Advertisements