问题 1 The constructor of a class that adheres to the Singleton design pattern must have _____ visibility. A. public B. protected C. private D. package 答案: C
问题 2 下面哪一个模式与策略模式是一类的? A.Factory Method B.Adapter C.Iterator D.Decorator 答案: C
问题 3 What is design pattern? A.describe practical solutions to common design problems that occur repeatedly in software development. B.A description of the solution that includes the class structures that solve the problem C.A description of the problem that the pattern addresses D.A name that identifies the pattern 答案: A
问题 4 The Strategy design pattern is likely to be useful when implementing which of the following?
I. An application that offers several alternate sorting algorithms II. A simple class t