摘要: package com.cntaiping.tpi.claimplat.serviceapi.Test1.demo04; public class Student { //成员变量 private String name; public int age; public String getName( 阅读全文
posted @ 2021-05-11 14:48 步江伍德 阅读(43) 评论(0) 推荐(0)
摘要: public interface UserServices { void add(); void delete(); void set(); void get(); } public class UserServiceImpl implements UserServices{ @Override p 阅读全文
posted @ 2021-05-11 14:18 步江伍德 阅读(36) 评论(0) 推荐(0)
摘要: public abstract class Animal { public abstract void eat(); } public interface CatchMouseAble { void catchMouse(); } public interface SwimAble { void S 阅读全文
posted @ 2021-05-11 09:51 步江伍德 阅读(83) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-05-09 15:28 步江伍德 阅读(43) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-05-09 15:09 步江伍德 阅读(33) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-05-09 15:04 步江伍德 阅读(25) 评论(0) 推荐(1)
摘要: 什么是单例设计模式 单例模式(Singleton Pattern)是 Java 中最简单的设计模式之一。这种类型的设计模式属于创建型模式,它提供了一种创建对象的最佳方式。 这种模式涉及到一个单一的类,该类负责创建自己的对象,同时确保只有单个对象被创建。这个类提供了一种访问其唯一的对象的方式,可以直接 阅读全文
posted @ 2021-05-05 01:59 步江伍德 阅读(86) 评论(0) 推荐(0)