Is there a way to avoid a class from implementing 2 specific interfaces at the same time, in Java?
If, for example, I have 2 kinds of object: Movable objects and Motionless objects. Then I have a class Car which implements Movable. How can I avoid it from implementing Motionless if it already implements Movable?
This is just a trivial example, it's obvious which an object which I can move can't be motionless, but there may be circumstances where it isn't that clear that an object cannot implements 2 specific interfaces at the same time, from a logical point of view.