fork download
  1. class A {
  2. public:
  3. A() {};
  4. protected:
  5. virtual int Action() = 0;
  6. };
  7.  
  8. class B: public A {
  9. public:
  10. int Action();
  11. };
  12.  
  13. int B::Action() {
  14. return 4;
  15. }
  16.  
  17. int main() {
  18. B newB;
  19. newB.Action();
  20. }
  21.  
Success #stdin #stdout 0s 3292KB
stdin
Standard input is empty
stdout
Standard output is empty