From de5824c81d43501bc1865cd6aea852407b8a397a Mon Sep 17 00:00:00 2001 From: hnu202304060319 <3040369688@qq.com> Date: Tue, 23 Sep 2025 16:57:12 +0800 Subject: [PATCH] =?UTF-8?q?Update=20=E7=B1=BB=E7=9A=84=E8=AE=BE=E8=AE=A1.m?= =?UTF-8?q?d?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 类的设计.md | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/类的设计.md b/类的设计.md index a202949..81a7bd2 100644 --- a/类的设计.md +++ b/类的设计.md @@ -26,10 +26,17 @@ private User currentUser; // 当前登录用户 private String currentType; // 当前题目类型 ###方法: - public boolean login(String username, String password) // 用户登录验证 - public void logout() // 用户退出登录 - public boolean switchUserType(String newType) // 切换题目难度类型 - public boolean isLoggedIn() // 检查用户是否已登录 - public User getCurrentUser() // 获取当前用户信息 - private void initializeUsers() // 初始化预设用户账户 - public UserManager() // 构造函数 + public boolean login(String username, String password) + // 用户登录验证 + public void logout() + // 用户退出登录 + public boolean switchUserType(String newType) + // 切换题目难度类型 + public boolean isLoggedIn() + // 检查用户是否已登录 + public User getCurrentUser() + // 获取当前用户信息 + private void initializeUsers() + // 初始化预设用户账户 + public UserManager() + // 构造函数