-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

Shehata Gamal
  • 98,760
  • 8
  • 65
  • 87