Hi,
I have created my own class named myClass1 and myClass2. Now I want to access the element of both class(not members of those class rather when iterator those class using arrayIteratorBB the output format) in a single function. Where the function displays the values of member variables.
Can anyone tell me how to handle this situation? For more clarity, in c++ there is keyword called "template" where we can pass any type of input to that particular function.
Awaiting for your great reply and help!!


