fork download
  1. struct Base
  2. {
  3. private:
  4. void foo(float);
  5. };
  6.  
  7. struct Derived: public Base
  8. {
  9. public:
  10. void foo(int);
  11. };
  12.  
  13. void Derived::foo(int){
  14. return;
  15. }
  16.  
  17.  
  18. int main()
  19. {
  20. Derived d;
  21. d.foo(5.0f);
  22. }
  23.  
Success #stdin #stdout 0s 5288KB
stdin
Standard input is empty
stdout
Standard output is empty