Persistent Systems interview question

How to create a singleton class