fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. class X1
  5. {
  6. int value1;
  7. public:
  8. X1(int arg_value1=0) : value1(arg_value1) {}
  9. };
  10.  
  11. class X2 : public X1
  12. {
  13. int value2;
  14. };
  15.  
  16. int main()
  17. {
  18. X2 exampleClass;
  19. return 0;
  20. }
Success #stdin #stdout 0.01s 2720KB
stdin
Standard input is empty
stdout
Standard output is empty