M
Mukesh
Hi,
Consider a situation where a class (Say C1) is implementing two
interfaces (I1, I2). Both the interface contains a method (M1) with
the same signature.
class C1:I1, I2
{
//implementation of M1 only once
}
I wanna understand why we need only one implementation of M1. It
voilates the principle which says we must provide implementation of
every method for all the interfaces.
In any case which interface's M1 is being implemented here i mean I1
or I2?
Thanks
Mukesh
Consider a situation where a class (Say C1) is implementing two
interfaces (I1, I2). Both the interface contains a method (M1) with
the same signature.
class C1:I1, I2
{
//implementation of M1 only once
}
I wanna understand why we need only one implementation of M1. It
voilates the principle which says we must provide implementation of
every method for all the interfaces.
In any case which interface's M1 is being implemented here i mean I1
or I2?
Thanks
Mukesh