摘要: package oop1.Demo10; public class Outer { private int id; public void out() { System.out.println("外部类的方法"); } //成员内部类 class Inner { public void in() { 阅读全文
posted @ 2025-09-29 23:41 冰涿 阅读(6) 评论(0) 推荐(0)
摘要: package oop1.Dem9; //类可以通过implement关键字去实现接口 //而为了能够成功的实现接口的类,需要重写接口中的方法 //在java中通过接口实现了多继承 public class UserServiceImpl implements UserService,TimeSer 阅读全文
posted @ 2025-09-29 13:01 冰涿 阅读(9) 评论(0) 推荐(0)