N0698311 / SDI

Software Design Implementation
0 stars 0 forks source link

Initialisation on every call #13

Closed N0699093 closed 6 years ago

N0699093 commented 6 years ago

o Notice that Card::faceName() & Card::suitName() use initialiser lists for the vector - C++11 at last! Are we concerned that this initialisation happens on every call? (does it? – see next point & check again). What is the best way to address this concern?

N0699093 commented 6 years ago

The initialisation does not happen on every call and making the methods const will then make sure the methods cannot be altered or changed and are constant.