I'm studying interface and got into something weird interface stuff where the rule is we must implement an interface method public. But not in this example.
I've tried what I learned in my experience and the answer I've found really breaks the rule.
public interface DropV1
{
void Ship();
}
public interface DropV2
{
void Ship();
}
//accepted by the editor
class DropShipping : DropV1, DropV2
{
void DropV1.Ship() { }
void DropV2.Ship() { }
}
I was expecting in 1billion percent of the implementation would be:
public void DropV1.Ship()
public void DropV2.Ship()
Why it is like that?