Explain types of protocol?
Answer / Sunil
Protocols in Objective-C are essentially blueprints of method signatures that a class can choose to adopt. There are two types of protocols: protocol with methods and protocol without methods (also known as a marker protocol). A protocol with methods declares required and optional methods, while a protocol without methods just lists the names of the methods but does not declare them.
| Is This Answer Correct ? | 0 Yes | 0 No |
Can we create dynamic classes in objective c? If yes, explain how to create with a valid use case?
How to call objective c function in swift?
What is nsarray objective c?
How to convert data to string in objective c?
Can delegates be retained?
What is objective c used for?
How big is a atom?
Explain what is #import?
What is the difference between atomic and nonatomic synthesized properties?
Is c++ objective c?
What are the rules for identifiers?
What is protocol with example?