prog.cpp:19:37: error: expected ‘{’ before ‘(’ token
struct FinalClass : public NameClass("FinalClass") {};
^
prog.cpp:19:38: error: expected unqualified-id before string constant
struct FinalClass : public NameClass("FinalClass") {};
^
prog.cpp:19:38: error: expected ‘)’ before string constant
prog.cpp: In function ‘int main()’:
prog.cpp:23:13: error: aggregate ‘FinalClass fc’ has incomplete type and cannot be defined
FinalClass fc;
^