What is 'private', 'protected' and 'public' ?



What is 'private', 'protected' and 'public' ?..

Answer / Pradip Yadav

In iOS, these are access control modifiers used for classes and methods. private means the member can only be accessed within the class; protected means the member can be accessed within the class and its subclasses; public means the member can be accessed from anywhere.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Apple iOS Interview Questions

What is onboarding and why is it so important for mobile design? : IOS Architect

1 Answers  


What is plist?

1 Answers  


Name the application thread from where uikit classes should be used?

1 Answers  


what are fetched properties? How do you create a fetched property?

1 Answers  


Compare and contrast the different ways of achieving concurrency in os x and ios.

1 Answers  


What are the App states in iOS operating system? Explain them

1 Answers   UGC Corporation,


What is the difference between inheritance and category?

1 Answers  


What is meaning of 'nonatomic' keyword?

1 Answers  


What is difference between category and extension in ios?

1 Answers  


Which is easier android or ios development?

1 Answers  


What is plist file and explain about it is usage in iOS operating system?

1 Answers   UGC Corporation,


What is main thread checker?

1 Answers  


Categories