Like all functions, a constructor can have default arguments . They are used to initialize member objects. If default values are supplied, the trailing arguments can be omitted in the expression list of the constructor.
Can a constructor have default values?
Like all functions, a constructor can have default arguments . They are used to initialize member objects. If default values are supplied, the trailing arguments can be omitted in the expression list of the constructor.