Does Objective-C contain private strategies?

Member

by matilde , in category: Technology , 3 years ago

Does Objective-C contain private strategies?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

Member

by pink , 3 years 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 .