Objective: Write a class that uses the Singleton pattern.
In this exercise, you will write a Panda class that guarantees exactly one instance can exist during
program execution. You may answer in Java or C++.
Requirements
Panda (use a non-public constructor).getInstance() / instance()) that always returns the same object.speak(), eatBamboo(), or getName()) to show the object is usable.Paste your solution into the text area and click Submit. Your answer will be displayed on the results page for review.