11 2022 档案

摘要:函数式接口:只有一个方法的接口 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 无极是一种信仰 阅读(8) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示