fork download
  1. import java.util.*;
  2. import java.lang.*;
  3. import java.io.*;
  4.  
  5. class Test
  6. {
  7. int eat() { return 1; }
  8. }
  9.  
  10. class TestChild extends Test
  11. {
  12. void eat(int apples) {}
  13. }
  14.  
  15. class Ideone
  16. {
  17. public static void main (String[] args) throws java.lang.Exception
  18. {
  19. TestChild tc = new TestChild();
  20. int n = tc.eat();
  21. }
  22. }
Success #stdin #stdout 0.1s 320576KB
stdin
Standard input is empty
stdout
Standard output is empty