fork download
  1. class B;
  2.  
  3. class A {
  4. virtual void addTo(B*) {}
  5. };
  6.  
  7. class B : A {
  8. void addTo(B* b) {
  9. // blah blah blah
  10. }
  11. };
  12.  
  13. int main() {B b;}
Success #stdin #stdout 0.01s 2676KB
stdin
Standard input is empty
stdout

Standard output is empty