题目内容

A likely violation of the Injection of Dependencies principle:Which class?

A. Veem
B. Blurk
C. SnitVeem
D. BlortVeem
E. JitVeem
F. No Violation

查看答案
更多问题

A likely violation of the Injection of Dependencies principle:Which method?

A. zike
B. initialize
C. get_veem
D. wurgle
E. the class as a whole
F. No Violation

A likely violation of the Demeter principle:Which class?

A. Veem
B. Blurk
C. SnitVeem
D. BlortVeem
E. JitVeem
F. No Violation

A likely violation of the Demeter principle:Which method?

A. zike
B. initialize
C. get_veem
D. wurgle
E. the class as a whole
F. No Violation

Customers can add milk, syrup, whipped cream, or any combination of these to their coffee. Each ingredient adds to the price and adds a preparation step after brewing.

A. Template or Strategy pattern
B. Decorator pattern
C. Adapter or Facade pattern
D. Null Object pattern Proxy pattern
E. Subclass inheritance with no other design pattern

答案查题题库