• 2022-06-01
    Every instance of an abstract type is an instance of some concrete subtype.
  • 内容

    • 0

      定义类的关键字是 ( ) A: Class B: class C: Instance D: instance

    • 1

      【单选题】下面的代码实现了设计模式中的()模式 public class A{ private A instance; private A(){} public static Aget Instance{ if(A==null) instance = new A(); return instance; } } A. Factory B. AbstractFactory C. Singleton D. Builder

    • 2

      In programming languages, an abstract type is a type in a nominative type system that can be instantiated directly; a type that is not abstract – which can be instantiated – is called a concrete type.

    • 3

      In programming languages, an abstract type is a type in a nominative type system that can be instantiated directly; a type that is not abstract – which can be instantiated – is called a concrete type. A: 正确 B: 错误

    • 4

      中国大学MOOC: There are following business statements for an information system:①A customer submit 0 or more orders;②An order can only be submitted by one customer. There are two classes in the system “Customer” and “Order”. For each instance of Order Class, there are ____ instance(s) of Customer Class; while for each instance of Customer Class, there are ____ instance(s) of Order Class.