Week3- 面向对象的设计模式(作业一)

作业一:
1. 请在草稿纸上手写一个单例模式的实现代码,拍照提交作业。

2. 请用组合设计模式编写程序,打印输出图 1 的窗口,窗口组件的树结构如图 2 所示,打印输出示例参考图 3。





winForm(Windows窗口)
picture(Picture图片)
Button(Button-login-登录)
Button(Button-register-注册)
Fream(FRAME1)
Lable(Label-用户名)
text(TextBox-文本框)
Lable(Lable-密码)
text(PassWordBox-密码框)
checkbox(CheckBox-复选框)
checkbox(TextBox-记住用户名)
checkbox(LinkLabel-忘记密码)
Process finished with exit code 0
评论