sesame.seed2
CPSComputer Programming - Seneca Polytechnic College
•Created by sesame.seed2 on 10/12/2022 in #ask-a-question
question about operator bool() const
when checking if an object has valid data do we need to check every private member of the class or only one?
For example:
In the OOP notes the conversion operator for bool only checks that one member is not zero or true
Like this:
Student::operator bool() const { return no != 0; }
Long story short do we need to check every member is true or only one for it to be considered valid data in an object?9 replies
CPSComputer Programming - Seneca Polytechnic College
•Created by sesame.seed2 on 10/10/2022 in #ask-a-question
can anyone explain to me why this is wrong?
25 replies
CPSComputer Programming - Seneca Polytechnic College
•Created by sesame.seed2 on 10/10/2022 in #ask-a-question
function return..
4 replies
CPSComputer Programming - Seneca Polytechnic College
•Created by sesame.seed2 on 9/26/2022 in #ask-a-question
Help nullptr
70 replies