Okay this might have a simple answer but its not clicking..
How to use the same member function say xyz() to perform 2 different tasks?
NO..not talking about Function Overloading. The same function is to have codes for both the operations.
An array is a data member of the class. xyz() should be able to accept the elements of the array when its called and then display it too..