class instance question

John Smith <[email protected]>
Newsgroups gmane.comp.windows.off-topic
Message-ID <[email protected]>
Hi,
 Is there a way to programmatically determine the name of an instance
of a class without having to hardcode the information?

 For example if I have a 'Cat' class and I have an instance of that
class named 'Fluffy' assuming the Cat class has a 'Name' member
variable that can hold the information, is there a way to make
'Fluffy' determine its own name without having to tell it the
information? Just curious... Thanks.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.