-1

I am not able to understand the difference between below code and what are the scenarios that we need to use this both protocol.

    protocol protocolName {} 
    protocol protocolName: class {}

Thanks in advance.

1 Answers1

0

This

protocol protocolName: class {}

can only be adopted by classes

enter image description here

Sh_Khan
  • 93,445
  • 7
  • 57
  • 76