This a function implementation in the format
Object function body
like
int func() { return 0; };
It is not a good idea for objects because the Spreadsheet object is allocated in the function body and the a copy on the stack.
Better is to work with object pointers:
Spreadsheet* CreateObject() { return new Spreadsheet(3, 2); };
Which you wont write into a function. And you need to delete the Spreadsheet* somewhere.