Single-ton class is a class which allows to instantiate once only .