If a member function does not alter any data in the class, then we may declare it as a const member function as fallows:
void mul(int ,int) const;
double get_balance() const;
The qualifier const is appended to the function prototype. The compiler will generate an error message if such functions try to alter the data values.
How to set div beside each other ?
14 years ago
No comments:
Post a Comment