Persistent Systems Interview Question

How to create a singleton class