Advertisement
Smudla

Untitled

Jan 8th, 2015
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.64 KB | None | 0 0
  1. ublic class Main{
  2.     /*@java.lang.FunctionalInterface*/
  3.     interface FunctionalInterface {
  4.     public void prvni();
  5.     }
  6.    
  7.     @java.lang.FunctionalInterface
  8.     interface Potomek extends FunctionalInterface{
  9.     @Override
  10.     public void prvni();
  11.     //public void chyba();
  12.     }
  13.  
  14.     public static void main(String[] args) throws InterruptedException {
  15.  
  16.     FunctionalInterface funkcionalniInterface = new FunctionalInterface() {
  17.         @Override
  18.         public void prvni() {
  19.             System.out.println("Funkcionalni rozhrani");
  20.         }
  21.     };
  22.    
  23.     Potomek potomek = () -> System.out.println("Potomek");
  24.     }
  25.  
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement