Given the declaration:
void X::mf(Y &y);
How would you change the declaration to declare that the operation of this function will not change the state of the object invoking it? What can you do with the re-declared function that you could not do in its original form?
Aucun commentaire:
Enregistrer un commentaire