问题
单项选择题
(43)设计模式允许一个对象在其内部状态改变时改变它的行为。下图为这种设计模式的类图,已知类State 为抽象类,则类(44)的实例代表了 Context 对象的状态。
(43)处填()。
A.单件(Singleton)
B.桥接(Bridge)
C.组合(Composite)
D.状态(State)
答案
参考答案:D
(43)设计模式允许一个对象在其内部状态改变时改变它的行为。下图为这种设计模式的类图,已知类State 为抽象类,则类(44)的实例代表了 Context 对象的状态。
(43)处填()。
A.单件(Singleton)
B.桥接(Bridge)
C.组合(Composite)
D.状态(State)
参考答案:D
完形填空。 | ||||
Hello, Li Hua! My name is Peter. I'd like to introduce (介绍) myself first. I'm a 1 . I come 2 England. I live in the center of the 3 , London. It is the capital of England. I live with my family in a flat 4 a busy street. There are eight 5 in my family. They're my grandparents, my parents, my two sisters, my younger brother and I. Our house is very 6 . It 7 10 rooms. I share a bedroom with my younger brother. We often listen to music in our bedroom. My 8 place is the balcony (阳台). I can play games, 9 comics and chat 10 friends there. Look, our school is very big 11 beautiful. There are playgrounds in our school. There are four basketball courts and two football fields in our school. There 12 a library and two reading rooms in our school. There are four teaching buildings, 13 office building and a dining hall in our school. There are nine 14 students and one hundred teachers in our school. Our classroom is on the ground floor in Building A. I am in 15 . Please write soon. Best wishes Yours, Peter. | ||||
|