It is right. Why not?
Your SuperClass implements SuperInterface, which is also implemented by your SubClass (due to the fact that SubClass extends SuperClass).
In addition, your SubClass implements a different interface (SubInterface).
There is nothing wrong with code / architecture.
SuperClass -- implements --> SuperInterface SubClass -- extends --> SuperClass -- implements --> SuperInterface*, SubInterface
- Implicit implementations due to SuperClass extensions
Sandro munda
source share