摘要: 函数式接口:只有一个方法的接口 public interface CanAdd { int add(int a,int b); } 该接口作为其他方法的入参,实现函数传递 public class Dog { public static void add(int a,int b,CanAdd c){ 阅读全文
posted @ 2022-11-03 13:47 无极是一种信仰 阅读(7) 评论(0) 推荐(0) 编辑