Does Objective-C contain private strategies?

devquora
devquora

Posted On: Feb 22, 2018

 

NO, there is nothing called a private method particularly in Object-C programming. On the off chance that a strategy is characterized in .m, then only it becomes protected. On the off chance that in .h, it is mainly open.
If you genuinely need a private method, then you have to include the local category/unnamed category/class extension in the specific class and add a method in a category and characterize it in the class.m .

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Objective C Interview Questions

    Tell me something about Objective-C blocks?

    In the Objective-C class, there are a question that combines data with its related behavior. It empowers you to form pa..

    Objective C Interview Questions

    Tell me about important protocol being used in Objective C?

    In Objective-C, the protocol is the language include, that gives the multiple inheritances in the single inheritance la..

    Objective C Interview Questions

    How would I make a static strategy?

    Methods are actualized continuously in Objective-C as static functions. The best way to acquire the IMP of a technique ..