Q&A
Ask and answer questions to make information more available to wider audiences.
Leah Jerwis @jerwisleah   21, Jun 2023 12:00 AM
Does Objective-C contain private methods
Does Objective-C contain private methods?
answers 2
 
Answer 1
Evelyn Jeningss @jeningssevelyn   27, Jun 2023 04:28 PM
If we really want a private method, then we need to add a local category/unnamed category/class extension in the class and add the method in the category and define it in class.m.
 
Answer 2
Evelyn Jeningss @jeningssevelyn   27, Jun 2023 04:28 PM
No, there is nothing called a private method in Object-C programming. If a method is defined in .m only, then it becomes protected; if it is defined in .h, it is public.