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 the principle distinction between the function calls and messages?
What are the two types of tangible property?
What does the objective c program fundamentally comprise of?
What is objective c good for?
Can we create dynamic classes in objective c? If yes, explain how to create with a valid use case?
When to use nsautoreleasepool??
What is objective c vs c?
What is immutable infrastructure?
What is a class in objective c?
Is c++ objective c?
What happen if we send any message to an object which is released?
What are objective c properties?