I have a Task class (superclass) which inherited PracticeTest class(childclass).
I'd faced question regarding my pass year question.
In fact, we are allowed to declared like this
Task aTask = new PracticeTest();
But i wonder why we are doing this way?
Thanks for advance explanation.