定义类的关键字是 ( )
A: Class
B: class
C: Instance
D: instance
A: Class
B: class
C: Instance
D: instance
举一反三
- Which of the following is the order of applying object-oriented concept in programming A: instance creating — class defining — use attributes or methods through the instance B: class defining — instance creating — use attributes or methods through the instance C: instance creating — use attributes or methods through the instance — class defining D: class defining — use attributes or methods through the instance —instance creating
- An object is an instance of a A: program B: class C: method D: data
- 若类没有父类,则默认派生自( )类. A: object B: instance C: class D: python
- The scope of a private instance field is: 私有实例字段的范围是: A: the instance methods of the same class 同一个类的实例方法 B: inside the class, but not inside any method 在类中,但不在任何方法中 C: inside the parentheses of a method header 方法头的括号内 D: the method in which they are defined 定义它们的方法
- 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. A: (1) 1 (2) 1 B: (1) 1 (2) 1 or more C: (1) 1 (2) 0 or more D: (1) 0 or more (2) 1