public class Restaurant { private static Restaurant _instance = null; public static Restaurant getInstance() { if (_instance == null) { _instance = new Restaurant(); } return _instance; } }
Bit Manipulation
Factory Pattern