generates C++ method implementation stub