Explain what is data encapsulation in objective-c?
Answer / Brij Vir
Data Encapsulation in Objective-C refers to the practice of keeping the fields (variables) and methods of an object private, and only providing access to them through public interfaces. This helps to prevent unauthorized access to the data and ensures that the data is modified in a controlled manner.
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain types of protocol?
Does objective c have pointers?
Is objective c the same as c++?
What is concept of property?
How can we put nil it into dictionary/array?
Explain when to use nsarray and nsmutablearray. Which one is faster and threadsafe?
Is objective c better than c++?
When might you use a cfarray/dictionary instead of a nsarray/dictionary?
Does objective c have multiple inheritance? Why not? How to imitate various inheritance?
What is abstract class in objective c?
Is objective c hard?
How to convert string to nsnumber in objective c?