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

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e508f1-450ae.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e508f1-450ae.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?