Initializer List
Concise way in initializing data members
Initializer List
Now let’s go back to the Goods class we wrote before. Suppose we want to add a production date to the goods, with a Data class:
class Date {
public:
Date(int y, int m, int d) ...