How to find out who instantiated a class

  • Thread starter Thread starter aaj
  • Start date Start date
A

aaj

Hi all

Is it possible for object to display the name of the object that instatiated
it.



thanks


Andy
 
Is it possible for object to display the name of the object that instatiated
it.

Not unless you pass it in as a parameter to the constructor. BTW,
objects in general don't have names.



Mattias
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top