Image that we have some class for example Square.class and an interface Shape with method calculate(). The class Square implements Shape interface and here is my question. In some other class where we have a main method i want to make an instance of square and to use calculate method. What is the difference between this types of instance:
Square square = new Square();
Shape square = new Square();