Tell me about important protocol being used in Objective C?

devquora
devquora

Posted On: Jun 14, 2024

 

In Objective-C, the protocol is the language include, that gives the multiple inheritances in the single inheritance language. The Objective C underpins two kinds of protocol.

  1. Ad hoc protocol which is also known as informal protocol
  2. Compiler protocol is known as a formal protocol

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Objective C Interview Questions

    Tell me something about Objective-C blocks?

    In Objective-C, classes combine data with related behavior, empowering the formation of specific code segments. These segments, or blocks, can be passed to functions and added to collections like NSDi..

    Objective C Interview Questions

    How would I make a static strategy?

    Methods in Objective-C are implemented as static functions. To acquire the IMP of a method, use the runtime functions like methodFor:, as the function itself is static to the record executing the meth..

    Objective C Interview Questions

    Explain class definition in Objective-C?

    In Objective-C, a class is defined using the @interface keyword followed by the class name and body, enclosed in curly braces. All classes inherit from the base class NSObject, which provides essentia..