fork(1) download
  1. interface A{
  2. Object foo();
  3. }
  4.  
  5. interface B{
  6. String foo();
  7. }
  8.  
  9. class C implements A, B{
  10. public String foo(){
  11. return "Foo";
  12. }
  13. }
  14.  
  15. class Ideone
  16. {
  17. public static void main (String[] args) throws java.lang.Exception
  18. {
  19. C c = new C();
  20. System.out.println(c.foo());
  21. }
  22. }
Success #stdin #stdout 0.06s 32316KB
stdin
Standard input is empty
stdout
Foo