QUESTION
(a) People want to know design patterns.
- i) What should their attitude be about design patterns?
- ii) How can people use design patterns to do a better job?
- iii) What is the real value?
(b) What is an anti-pattern?
(c) What is the intent of the Singleton pattern?
(d) The Singleton uses a special method to instantiate objects. What is special about this method? Why the constructor is kept private?
(e) Using any language of your choice write the singleton class.