object array « Class « C++ Tutorial






9.33.object array
9.33.1.Create an array of objects
9.33.2.An array of objects: call its method
9.33.3.Initialize an array of objects without referencing the constructor directly
9.33.4.Initialize an array of objects by referencing the constructor directly
9.33.5.Object array of derived classes
9.33.6.Allocate an array of objects using new operator
9.33.7.An array of pointers to objects
9.33.8.An array on the heap
9.33.9.Delete an array of objects








9.33.10.allocates and frees an object and an array of objects of type loc.