Means to Learn
Arrays can be used as member variable in a class. The example shown in the figure, illustrates a valid class definition. The array variable name[len] is declared as a member of class emp. In the class definition, the member function setvalue() sets the values of elements of emp name[] and display() function displays the value.
Arrays within a class

