Both methods assign the argument values to the appropriate data members of the class. If you do not explicitly initialize a base class or member that has constructors by calling a constructor, the compiler automatically initializes the base class or member with a default constructor .