c++ class capp