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.