Skip to content

Latest commit

 

History

History
8 lines (6 loc) · 335 Bytes

7.48.md

File metadata and controls

8 lines (6 loc) · 335 Bytes

If the constructors are not explicit.

string null_isbn("9-999-99999-9");  // call string ctor
Sales_data item1(null_isbn);  // call Sales_data ctor
Sales_data item2("9-999-99999-9");
// first cover "9-999-99999-9" to string, then call Sales_data ctor

If the constructors are explicit, the same operations happen.