MClass::MClass(int a1, int a2, int b1, int b2): A(a1,a2), B(b1,b2){}
Standard input is empty
prog.cpp:1:1: error: 'MClass' does not name a type MClass::MClass(int a1, int a2, int b1, int b2): ^
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!