package Api;
public class local7 {
public static void main(String[] args) {
Swimmimg w=()->{
System.out.println("方式");
};
}
}
interface Swimmimg{
void run();
}
/* public static void main(String[] args) {
Animal a= new Animal(){
@Override
public void run() {
System.out.println("方式");
}
};
a.run();
}
}
abstract class Animal{
public abstract void run();
}
方法引用