Hi,
Is it good to use object varaible?
For example:
Object classTest;
If(_variable) // assume it's defined
{
classTest = new ClassChild();
}
else
{
classTest = new ClassParent();
}
Where ClassChild extends ClassParent
Can i use it or shall i use anyType instead or is there another better way to achieve what i want?