Computer Science, asked by poll5834, 1 year ago

What is array of objects. explain with example.

Answers

Answered by brainlyboytopper
6
Array of Objects in c++ Like array of other user-defined data types, an arrayof type class can also be created. Thearray of type class contains theobjects of the class as its individual elements. Thus, an array of a class type is also known as an array of objects.
Answered by Anonymous
5

Explanation:

An array of objects can be defined as an array of any built-in category, all of whose members are of the same rank. Every component in the set is a category entity. In this way, being able to declare objects ' arrays underlines the fact that a class is equivalent to a type.

The type class array contains the class objects as its individual elements. Thus, a class type array is also referred to as an array of objects. In the same way as an array of any built-in data type, an array of objects is declared. For example: int age[100 ]; the age array can hold up to 100 integer-type elements.

Similar questions