What is a self in Objective c?

devquora
devquora

Posted On: Dec 24, 2020

 

In Objective-C, the self is a special variable, in an instance method that refers to the receiver (object) of the message as well as invoking the method, while in a class method the self will indicate which class to call. This is the actual object that is used in runtime to execute the current method as an invisible argument.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions