update C++ class