Q. To implement the Singleton design pattern specify all the needed steps ............ (Solved)
1. add final modifier to the class declaration
2. add private or protected modifier to the constructor declaration
3. introduce a static getter method for the singleton instance
4. all of above
- d. all of above