The singleton pattern The singleton pattern is a behavioral pattern that restricts the number of instances of a class to one instance.