I have an abstract class and a class which extends it and implements the methods without adding further methods of its own. Let's call the classes A and B. B extends A. should i create an instance of class B like this
A newInstance = new B();
or like this
B newInstance = new B();
Does it make any difference and which is a better practice ?