Interface B inherits interface A, but does not add new methods. Does that make any sense?

RT.

if interface C needs to inherit interface B, why not inherit interface A directly?
is it just to clarify a father-son relationship?

Aug.12,2021

I don't see any advantage from your simple example. You think, if you want to expand interface B in the future, it will be useful


to make room for future expansion without affecting what you already have.
of course, if you don't use it all the time, it will be called overdesign

.
Menu