If a class contains more than one constructor, computer determines the appropriate constructor by matching all the attributes, like the number, data type and position. Here's the example where the row public AirConditioner(){} is the default constructor that can use default settings or initialize manually (sorry for tabulation, not my fault):
class AirConditioner{ enum ConditionerMode{ Automatic, } public ConditionerMode Mode; public int MinTemperature = 18; public int MaxTemperature = 20;
public AirConditioner(){ }
public AirConditioner(ConditionerMode mode){ Mode = mode; } public AirConditioner(ConditionerMode mode, int MinTemp, int MaxTemp){ Mode = mode; MinTemperature = MinTemp; MaxTemperature = MaxTemp; }}