I assume "Shape" is an interface, and "Square" an implementation of that interface.
Now, if you need to call a method that's declared for the Shape interface (typical example is Shape.getArea()), you shouldn't care whether it's a Square or something else, and call that function.