Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 5th, 2012  |  syntax: None  |  size: 0.30 KB  |  hits: 9  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Superklasse{
  2.  
  3.     @Override
  4.     public final String toString(){
  5.         return "Superklasse";
  6.     }
  7.  
  8.     public static void main(String[] args){
  9.         Superklasse superKlasse = new Subklasse();
  10.         System.out.println(superKlasse.toString());
  11.     }
  12.  
  13. }
  14.  
  15. Subklasse extends Superklasse{}