I am instantiating an object of one class with aanother class..
here is how the line is..
Class1.method1();
where method1 goes something like this ..
method1(){
Class2 c = new Class2();
}
After creating the c object of Class2, is there anyways i can know which class instatiated it(Can i get the class name of Class1 using c)??
Thank you :)