Generates the code for a simple C++ class