1. 2 2. 3 Name: Singleton Intent: Ensure a class has only one instance and provide a global point of access to it Problem: How can we guarantee that one and only…