Advertisement
kernel_memory_dump

Untitled

Feb 2nd, 2015
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.54 KB | None | 0 0
  1. public abstract class Vozilo {
  2.  
  3. public abstract void vozi();
  4.  
  5.  
  6. }
  7. ///////////////////////////////////
  8. public class Automobil extends Vozilo {
  9.  
  10.  
  11. public void vozi() {
  12.   System.out.println("AUTOMOBIL SE VOZA!");
  13.  
  14. }
  15.  
  16. }
  17.  
  18.  
  19. ////////////////////////////
  20.  
  21. public class ElektricniAutomobil extends Automobil{
  22.  
  23.  
  24. public void vozi() {
  25.   System.out,println("ELLLL AUTOMOBIL SE VOZA!");
  26.  
  27. }
  28.  
  29. }
  30.  
  31. ////////////////
  32.  
  33. public class Automobil extends Vozilo {
  34.  
  35.  
  36. public void vozi() {
  37.   System.out,println("AUTOMOBIL SE VOZA!");
  38.  
  39. }
  40.  
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement