2022年1月9日

接口interface

摘要: interface 接口public interface 接口名{}接口中所有定义的方法都是抽象的 public obdtract 接口中所有常量都是 public static final 接口里的方法不能有方法体,如下: viod 方法名();//接口里方法格式 implements 实现接口p 阅读全文

posted @ 2022-01-09 17:04 湖汉三 阅读(29) 评论(0) 推荐(0)

多线程thread

摘要: 使用 implements Runnable创建 new thread(对象名).start();启动 阅读全文

posted @ 2022-01-09 14:51 湖汉三 阅读(22) 评论(0) 推荐(0)

导航