fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. abstract class Fun{
  8. void time(){
  9. System.out.println("Fun Time"); }}
  10. class Run extends Fun{
  11. void time(){
  12. System.out.println("Fun Run"); }
  13. public static void main(String[] args) {
  14. Fun f1=new Run();
  15. f1.time(); }}
Success #stdin #stdout 0.1s 54692KB
stdin
Standard input is empty
stdout
Fun Run