What is encapsulation in ios?



What is encapsulation in ios?..

Answer / Bhupendra Sharma

In Objective-C and Swift for iOS, Encapsulation refers to the practice of keeping the fields (properties) within a class private, and providing access to them through public methods. This helps hide the complexity of an object's data representation from outside code.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Apple iOS Interview Questions

What is a serial queue?

1 Answers  


What is the use of appdelegate in ios?

1 Answers  


What is inactive state in ios?

1 Answers  


How to do upload of large sized video file to server ? while uploading user presses “Homebutton” How long will execute?

1 Answers  


What is the difference between inheritance and category?

1 Answers  


What is nsfetchedresultscontroller? How do you turn on content monitoring?

1 Answers  


What are b-trees?

1 Answers  


What is managed object context and what are its functions?

1 Answers  


What is App Bundle in iOS operating system?

1 Answers   TryTechnicals Pvt Ltd,


What is the purpose of reuseidentifier?

0 Answers  


What are “strong” and “weak” references? Why are they important and how can they be used to help control memory management and avoid memory leaks?

1 Answers  


What is iOS?  

2 Answers  


Categories