Originally posted by rey leon:
Could somebody help me understand the logic behind implementing 2 interfaces that have identical methods? ...
I think the explanation you're looking for probably depends on what you perceive to be the issue.
"I" is an interface that says a method "m" will be available.
"I2" is an interface that says a method "m" will be available.
"T" is a class that implements both I and I2 by providing implementation for a method "m," and this satisfies the "contract" of both interfaces.
This overlap might make it difficult for T to satisfy the intent of m being in both interfaces (a situation that might be prevented through more descriptive method names). But beyond implementation, consider that an instance of T IS-AN I
and IS-AN I2.