You could employ the assignment operator your wrote with an array. Not for int, but for the Array class, you overloaded operator.
A data structure called an array consists of a collection of components (properties or variables), each of which is identifiable by an array index or key. An arrays is stored in a way that allows a mathematical expression to determine each element's position given its index tuple.
When using various parameters of the same type, arrays are employed. It can be described as a collection of identically typed objects. It is more helpful to conceive of it as an array because it is utilized to maintain a variety of information.
To know more about array visit:
https://brainly.com/question/16968729
#SPJ4