Array of objects are the arrays of variables that are of type class. The statement shown in figure, illustrates how array accessing methods can be used to access the individual elements and also, how the dot member operator can be used to access the member functions.
employee supervisor[5]; //array of supervisor employee
chargeman[20]; //array of chargeman employee
workerf[100]; //array of worker
supervisor.displaydata();


