iOS Developer Question: Download iOS Developer PDF

Explain "private", "Protected" and "Public"?

Tweet Share WhatsApp

Answer:

☛ private - limits the scope class variable to the class that declares it.
☛ protected - Limits instance variable scope to declaring and inheriting classes.
☛ public - Removes restrictions on the scope of instance variables

Download iOS Developer PDF Read All 102 iOS Developer Questions
Previous QuestionNext Question
What is meaning of "nonatomic" keyword?What is "Push Notification"?