Single-ton class:

A class having only one object is called single ton class.
Single-ton class
Write a program:
singleclasston2