Pointer to object: – An array of pointers to object is often used to handle a group of object, which need not necessarily reside contiguously in memory. As in the case of static array of object. This approach is more flexible, in compression with placing the objects them self’s in an array, because objects could be dynamically created as and when they are required.

Advertisements