3 ms·
IMO, protocols are way better than interfaces. They're essentially the same, except you don't need to inherit from a protocol for your object to be compliant.
by BerislavLopac 6y ago
IMO, protocols are way better than interfaces. They're essentially the same, except you don't need to inherit from a protocol for your object to be compliant.