Hi,
I've these classes
Integer derived from Object
String derived from Object
I'm creating another class MyMap
which shall have the capability to store Integer, String (or any other obj derived from 'Object' class) objects in it. MyMap has a data member of stl map.
Can u plz give me a tiny program showing how to store Integer/String objs in MyMap. MyMap is not inherited from anything, it just use stl map as data member. providing an interface to other classes for manipulating stl map easily.
I'm getting into lot of trouble doing this, please help.