fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct Interf {
  5. virtual void foo(const int a) = 0;
  6. };
  7. struct Impl : Interf {
  8. virtual void foo(int a) override {}
  9. };
  10.  
  11.  
  12. int main() {
  13. Impl i;
  14. i.foo(1);
  15. // your code goes here
  16. return 0;
  17. }
Success #stdin #stdout 0s 3456KB
stdin
Standard input is empty
stdout
Standard output is empty