I ve a problem....Im giving you an example of a class...
//Here I want to return name of my class and instance name
of my class....
But how cld I return class name and also instance of my
[One way to use hard coded class name] bt I dnt want to use
it. Becoz I ve lot of classes that extend the base class.
What is it that you are trying to do? Why would you need to
know the datatype and instance name? It sounds like you trying to
track the number of instances that are created. On the contrary it
sounds like you are trying to create a Singleton Design Pattern.
Post more. You may be interested in this article;