A protocol can defines a set of methods that can be adopted by any class, but we can't write code inside.On the other hand, extensions gives us the power to write code inside methods, but it can only used for one type.
2020-05-01 . 1 min read Protocol Extensions