3 ms·
> So it is with this Swift example and having a protocol, an extension, and a base class all declaring the exact same thing. I'm not sure what you mean. The o
by Dylan16807 8y ago
> So it is with this Swift example and having a protocol, an extension, and a base class all declaring the exact same thing.
I'm not sure what you mean. The only thing that's named the same is 'greet', and of course that has to be the same because it's the thing you're implementing.
Edit: Perhaps the protocol and extension could have different names? I don't see how that would make the behavior clearer.