Skip to content

Latest commit

 

History

History
9 lines (6 loc) · 245 Bytes

exercise_7_14.md

File metadata and controls

9 lines (6 loc) · 245 Bytes

练习7.14:编写一个构造函数,令其用我们提供的类内初始值显式地初始化成员。


Sales_data() : units_sold(0), revenue(0) { }

PS: 这题的意思是让用构造函数初始值列表代替=default吧?