What is a protocol in iOS?

Last updated:9/19/2020 5:47:55 PM

1 Answers

Sunil Singh
Sunil Singh

A protocol is similar to an interface from Java. A protocol is a group of related properties and methods that can be implemented by any class.Any class can implement a protocol and other classes can then send messages to that class based on the protocol methods.