Suppose there in an interface Displaceable and a class Circle which implements Displaceable. Displaceable has a method named move() which of course is implemented in Circle.
What would happen in the following scenario?
Circle a = new Circle(..);
Displaceable b = a;
b.move()
Would the object refer to the Circle’s move method?
Yes, b.move() would be the same as calling a.move() in your scenario. This is polymorphism in action.