17
C++ objects don't have 'names' (unless I am understanding the problem wrong) Your best hope is to name them as you make them.
class NamedObject
{
String name;
NamedObject(String argname)
{
name = argname;
}
}
NamedObject phil("phil");