#include "X.hpp" X::X(int i) : m{i} { // constructor body (if needed) } int X::mf(int i) { int old = m; m = i; // set a new value return old; // return the old value }