GofPatterns GofPatterns


Singleton Pattern   «Prev  Next»

Using the Singleton pattern - Exercise

Objective:Write a class that uses the Singleton pattern.
In this exercise you will be writing code in either Java or C++.
Write a class called Panda that uses the Singleton pattern.
In the text area below, type your answer and click the Submit button.