Wipro interview question

How to create a singleton class?