摘要:
1、局部内部类 比如: 2、匿名内部类 package com.lwx.inner; public class AnonymousInnerClass { public static void main(String[] args) { Outer02 outer02 = new Outer02() 阅读全文
posted @ 2023-08-14 19:37
猫尾大闸蟹
阅读(13)
评论(0)
推荐(0)
摘要:
1、代码块 2、好处 代码块可以提高代码的重用性 比如: 3、注意使用 阅读全文
posted @ 2023-08-14 11:54
猫尾大闸蟹
阅读(19)
评论(0)
推荐(0)
摘要:
1、基本介绍 2、使用注意事项 package com.hspedu.interface_; public class InterfaceDetail02 { public static void main(String[] args) { //老韩证明 接口中的属性,是 public static 阅读全文
posted @ 2023-08-14 10:57
猫尾大闸蟹
阅读(17)
评论(0)
推荐(0)

浙公网安备 33010602011771号