I have an abstract class and i am wondering if it is possible to know the instance of that class inside one of its methods.
I mean if there's any way to get it. Like some java method like myClass.whereAmI()
or something like that.
For example:
public abstract class MyClass {
public void myMethod(String string){
String instance = MyClass.getClass(); //I want to get the type of the instance.
....
}
}
Is this possible?