fork download
  1. class A {
  2. void foo() {}
  3. }
  4.  
  5. interface B {
  6. void foo();
  7. }
  8.  
  9. class C: A, B {
  10. }
  11.  
  12. void main() {
  13. C obj = new C;
  14. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.d(9): Error: class prog.C interface function B.foo is not implemented
stdout
Standard output is empty