Is there any way to, in a Java derived class, \"disable\" a method and/or field that is otherwise inherited from a base class?
For example, say you have a Shap
Shap
You can override the specific method "rotate()" in the class you want to disable this operation, like this
public void rotate() { throw new UnsupportedOperationException(); }