Java, Architecture, Clean Code, Solid, Programming.
ExtendedNumberAdder extends NumberAdder { @Override public int add(int a, int b) { throw new UnsupportedOperationException("This operation is not supported"); } } There’s also the possibility that the behavior of the parent method clashes with the logic of the child classes. Take a look at the