Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ublic class Main{
- /*@java.lang.FunctionalInterface*/
- interface FunctionalInterface {
- public void prvni();
- }
- @java.lang.FunctionalInterface
- interface Potomek extends FunctionalInterface{
- @Override
- public void prvni();
- //public void chyba();
- }
- public static void main(String[] args) throws InterruptedException {
- FunctionalInterface funkcionalniInterface = new FunctionalInterface() {
- @Override
- public void prvni() {
- System.out.println("Funkcionalni rozhrani");
- }
- };
- Potomek potomek = () -> System.out.println("Potomek");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement