📄 interfacebuilder.java
字号:
package Commands;
import Interfaces.*;
/** Build the correct interface for the person logging in. */
public class InterfaceBuilder
{
/** An interface corresponding to the login id.
Analysis: Time = O(1) */
public static StaffInterface get(int id)
{
if (id > 0 && id < 100)
return new AdminInterface();
else
return new TellerInterface();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -