A class does so by defining a special constructor, known as the default constructor. This constructor is called the default constructor because it is run “by default;” if there is no initializer, then this constructor is used . The default constructor is used regardless of where a variable is defined.