Using interfaces in java..Newb question
- by Rahul
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?