public Menu(Print print) { this.print = print; this.errorCheck = ErrorCheck.GetInstance(); memberManagement = new MemberManagement(this); bookManagement = new BookManagement(this); MainMenu(); }
public static ErrorCheck GetInstance() //싱글톤구조 { if (errorCheck == null) { errorCheck = new ErrorCheck(); } return(errorCheck); }
public Login() { print = new Print(); errorCheck = ErrorCheck.GetInstance(); }
public MemberManagement(Menu menu) { print = Print.GetInstance(); errorCheck = ErrorCheck.GetInstance(); this.menu = menu; }
public Print() { errorCheck = ErrorCheck.GetInstance(); //싱글톤구조 }