Note that whenever I say classA, I am referring to a abstract class that is the parent of a regular class that is called classB.
Is the bellow code:
the same as:
or are they both different?
Is the bellow code:
Java:
classB b = new classB();
classA refer = b;
the same as:
Java:
classA refer = new classB();
or are they both different?