soldieryap
Programmer
i wonder if there's solution to cast Object instance to its original Class Type without knowing its original type
for example:
Dog dog = new Dog();
Object obj = (Object) dog;
is there possible to cast "obj" to its original type without the code like:
Dog anotherDog = (Dog) obj;
got what i mean??
thanks in advanced . . .
for example:
Dog dog = new Dog();
Object obj = (Object) dog;
is there possible to cast "obj" to its original type without the code like:
Dog anotherDog = (Dog) obj;
got what i mean??
thanks in advanced . . .