Does Objective-C contain private strategies?

Member

matilde

by matilde , in category: Technology , a month ago

Does Objective-C contain private strategies?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

Member

by pink , a month ago

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 .