Arrays as Class Data Member
In this tutorial you will learn:
1. How to make Arrays as Class Data Member?
2. Why to use arrays as attributes of the class?
3. How to make array of objects?
4. C++ syntax
Arrays can also be the data members of the class, just like integer, float and other data type integers we can also define an array as the data members. Arrays are used as data members because if the user requires that the object contain a lot of information which is to be saved in the array then he will use array as the data member of the class.