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 |
Why we use synthesize in objective c?
Is objective c and c the same?
What is a class in xcode?
What is extern objective c?
What is toll-free bridging?
Is python static or dynamic?
What is id?
What can’t we put into an array or dictionary?
Is there function overloading in objective-c?
Is closure a function?
What is umbrella header?
What is the difference between weak and unowned?