-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.

0

1 Answer 1

0

This

protocol protocolName: class {} 

can only be adopted by classes

enter image description here

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.