What is singleton in objective c?
Answer / Raj Kumar Baghel
"Singleton" is a design pattern that ensures a class has only one instance, while providing global access to this instance. In Objective-C, you can implement a singleton by making the constructor of a class private and providing a public "sharedInstance" method.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is objective c used for?
What do you mean by dot notation?
What is 'protocol' on objective c?
How do you write an objective statement?
What is a goal and objective?
What is category in objective c?
Explain what are the attributes of category?
What are the differences between copy and retain?
Does objective c have multiple inheritance? Why not? How to imitate various inheritance?
What is m script in matlab?
What is difference between method and constructor?
Does objective c have pointers?