fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct Base
  5. {
  6. void Foo(double param)
  7. {
  8. cout << "Base::Foo(double)" << endl;
  9. }
  10. void Foo(int param)
  11. {
  12. cout << "Base::Foo(int)" << endl;
  13. }
  14. };
  15.  
  16. struct Derived : public Base
  17. {
  18. };
  19.  
  20. int main(int argc, char **argv)
  21. {
  22. Derived d;
  23. d.Foo(1.2);
  24. return 1;
  25. }
Runtime error #stdin #stdout 0s 2852KB
stdin
Standard input is empty
stdout
Base::Foo(double)