fork download
  1. class Parent {
  2. }
  3.  
  4. class Child extends Parent {
  5. }
  6.  
  7. interface I {
  8. Parent f(Child e);
  9. }
  10.  
  11. class D implements I {
  12. public Child f(Parent e) {
  13. return null;
  14. }
  15. }
Compilation error #stdin compilation error #stdout 0.08s 380160KB
stdin
Standard input is empty
compilation info
Main.java:11: error: D is not abstract and does not override abstract method f(Child) in I
class D implements I {
^
1 error
stdout
Standard output is empty