函數式接口

image.png

@FunctionalInterface  
//使用FunctionalInterface註解來標記  
interface InterB{  
    void showB();  
    //函數式接口必須是接口且僅有一個抽象方法的形式  
}