niusouti.com

The lower-level classes (known as subclasses or derived classes) ( ) state and behavior from the higher-level class (known as a super class or base class).A.request B.inherit C.invoke D.accept

题目

The lower-level classes (known as subclasses or derived classes) ( ) state and behavior from the higher-level class (known as a super class or base class).

A.request B.inherit C.invoke D.accept


相似考题

2.In looking at the class structure of an entire system, we may find that its inheritance (1) is either wide and shallow, narrow and deep, or balanced. Class structures that are wide and shallow usually represent forests of (2) classes that can be mixed and matched. Class structures that are narrow and deep represent trees of classes that are related by a common ancestor. There are advantages and disadvantages to each approach. Forests of classes are more loosely (3) , but they may not exploit all the commonality that exists. Trees of classes exploit this commonality, so that individual classes are smaller than in forests. However, to understand a particular class, it is usually necessary to understand the meaning of all the classes it inherits from or uses. The proper shape of a class structure is highly problem-dependent. We must make similar trade-offs among inheritance, aggregation, and using relation- ships. For example, should the class Car inherit, contain, or use the classes named Engine and Wheel? In this case, we suggest that an (4) relationship is more appropriate than inheritance relationship. Meyer states that between the class A and B," (5) is appropriate if every instance of B may also be viewed as an instance of A. The client relationship is appropriate when every instance of B simply possesses one or more attributes of A". From another perspective, if the behavior. of an object is more than the sum of its individual parts, then creating an aggregation relationship rather than an inheritance relationship between the appropriate classes is probably superior.A.distinctionB.levelC.gradeD.hierarchy

参考答案和解析
正确答案:B
更多“The lower-level classes (known as subclasses or derived classes) ( ) state and behavior fr ”相关问题
  • 第1题:

    Which of the listed classes of fire would most likely occur in the engine room of a vessel?

    A.Classes A and B

    B.Classes B and C

    C.Classes C and D

    D.Classes A and D


    正确答案:B

  • 第2题:

    The lower-level classes(known as subclasses or derived classes) ( )state andbehavior from the higher-level class(known as a super class or base class).

    A.request
    B.inherit
    C.invoke
    D.accept

    答案:B
    解析:
    低层的类(也称子类或派生类)从高层类(也称为超类或基类)中继承了状态和行为。

  • 第3题:

    Object-oriented analysis(OOA.is a semiformal specification technique for the object-oriented paradigm.Object-oriented analysis consists of three steps.The first step is( ).It determines how the various results are computed by the product and presents this information in the form of a( )and associated scenarios.The second is( ),which determines the classes and their attributes.Then determine the interrelationships and interaction among the classes.The last step is( ),which determines the actions performed by or to each class or subclass and presents this information in the form of(请作答此空).

    A.activity diagram
    B.component diagram
    C.sequence diagram
    D.state diagram

    答案:D
    解析:
    面向对象的分析(OOA)是一种面向对象范型的半形式化描述技术。面向对象的分析包括3个步骤:第1步是用例建模,它决定了如何由产品得到各项计算结果,并以用例图和相关场景的方式展现出来;第2步是类建模,它决定了类及其属性,然后确定类之间的关系和交互;第3步是动态建模,它决定了类或每个子类的行为,并以状态图的形式进行表示。

  • 第4题:

    在下面哪个web应用目录中可以放置所需要的class文件?()  

    • A、 /WEB-INF/lib
    • B、 /META-INF/lib
    • C、 /classes 放置已经编译的类文件
    • D、 /WEB-INF/classes

    正确答案:D

  • 第5题:

    Which two statements are true of login classes?()

    • A、Users can be members of multiple login classes.
    • B、Login classes define authorization parameters for a user.
    • C、There are five system-defined login classes.
    • D、Login class permission flags can be overridden for certain commands.

    正确答案:B,D

  • 第6题:

    Which two statements about the QoS policy generation phase of the Cisco SDM QoS wizard are true?()

    • A、the SDM QoS wizard will create two real-time traffic classes to handle VoIP, voice signaling, and video packets
    • B、the SDM QoS wizard will create three real-time traffic classes to handle VoIP, voice signaling, video, and video packets
    • C、the SDM QoS wizard will create four real-time traffic classes to handle VoIP, voice signaling, video, and video streaming packets
    • D、the SDM QoS wizard will create two business-critical traffic classes to handle transactional and  network management packets
    • E、the SDM QoS wizard will create three business-critical traffic classes to handle transactional, network management, and routing packets
    • F、the SDM QoS wizard will create four business-critical traffic classes to handle transactional, network management, routing, and best-effort packets

    正确答案:A,E

  • 第7题:

    Given the following directory structure: bigProject |--source ||--Utils.java| |--classes |-- And the following command line invocation: javac -d classes source/Utils.java Assume the current directory is bigProject,what is the result?()

    • A、If the compile is successful, Utils.class is added to the source directory.
    • B、The compiler returns an invalid flag error.
    • C、If the compile is successful, Utils.class is added to the classes directory.
    • D、If the compile is successful, Utils.class is added to the bigProject directory.

    正确答案:C

  • 第8题:

    单选题
    You are creating a Windows Forms Application by using the .NET Framework 3.5.You plan to design a new control that will be used on multiple forms in the app.You need to ensure that the control meets the following requirement:   (1)It retrieves data from a MSSQL Server 2008 database instance.   (2)It uses WPF classes to display data.   (3)It uses user-customizable actions when the control is first painted on the form.    What should you do?()
    A

    Create a new custom class for the control that is derived from the Control class.

    B

    Create a new custom class for the control that is derived from the UserControl class.

    C

    Create a new custom class for the control that is derived from the ContentControl class.

    D

    Create a new custom class for the control that is derived from the ContentPresenter class.


    正确答案: B
    解析: 暂无解析

  • 第9题:

    单选题
    假设在目录myprj/src/school中有Java源文件Student.java,编译后的类文件出现在目录myprj/classes/school中,应该使用下列哪一个命令来执行这个类?()
    A

    cd myprj/src  java ../classes school.Student

    B

    cd myprj/src/school  java –cp ../classes school.Student

    C

    cd myprj/src/school  java –cp ../../classes school.Student

    D

    cd myprj/src  java –cd ../classes school.Student


    正确答案: B
    解析: 暂无解析

  • 第10题:

    问答题
    What can these classes bring to children?

    正确答案: In my opinion, children who take such classes can get well prepared for their future physical and psychological development. For example, if the child loves playing basketball, then he can take part in a basketball training class and he can practice basketball on a regular basis. He can be better and better at basketball and gradually build up his body. If the child is fond of music, she can join the singing choir or learn to play an instrument and this is good for developing the child’s artistic talent. So I think interest classes are very beneficial to children’s general development.
    解析:
    参加兴趣班非常有利于孩子的身心发展。对此,考生可以举例说明。例如,如果一个孩子很喜欢篮球,那么他就可以报名参加一个篮球训练班。他的体格逐渐会变得强壮,而且他的球技也会越来越好。考生也可以举其他例子。

  • 第11题:

    多选题
    In which two web application directories can dependent classes and libraries be located? ()
    A

    /WEB-INF/lib as a JAR file

    B

    /META-INF/lib as a JAR file

    C

    /classes as compiled class files

    D

    /WEB-INF/lib as compiled class files

    E

    /WEB-INF/classes as compiled class files

    F

    /META-INF/classes as compiled class files


    正确答案: A,E
    解析: 暂无解析

  • 第12题:

    多选题
    Which two statements are true of login classes?()
    A

    Users can be members of multiple login classes.

    B

    Login classes define authorization parameters for a user.

    C

    There are five system-defined login classes.

    D

    Login class permission flags can be overridden for certain commands.


    正确答案: B,D
    解析: 暂无解析

  • 第13题:

    Fires of which class would most likely occur in the engine room of a vessel ________.

    A.Classes A and B

    B.Classes B and C

    C.Classes C and D

    D.Classes A and D


    正确答案:B

  • 第14题:

    What are members of the fitness center asked not to do?

    A.Bring guests who are under eighteen years old
    B.Leave classes early
    C.Use equipment for which they have not signed up
    D.Bring bags to classes

    答案:D
    解析:
    “Reminders”下面第四条指出,包应该放在贮藏室,以便为学员们留出更多的空间。

  • 第15题:

    public class SomeException {  } Class a:  public class a {  public void doSomething() { }  } Class b:  public class b extends a {  public void doSomething() throws SomeException { }  }  Which is true about the two classes?() 

    • A、 Compilation of both classes will fail.
    • B、 Compilation of both classes will succeed.
    • C、 Compilation of class a will fail. Compilation of class b will succeed.
    • D、 Compilation of class a will fail. Compilation of class a will succeed.

    正确答案:D

  • 第16题:

    Which two are true?()

    • A、 An encapsulated, public class promotes re-use.
    • B、 Classes that share the same interface are always tightly encapsulated.
    • C、 An encapsulated class allows subclasses to overload methods, but does NOT allow overriding methods.
    • D、 An encapsulated class allows a programmer to change an implementation without affecting outside code.

    正确答案:A,D

  • 第17题:

    Which three practices are important to the implementation of a DiffServ QoS architecture?()

    • A、 Because services are allocated throughout the network before the transmission of data begins, traffic classes can be guaranteed QoS services.
    • B、 Traffic classes are marked with Layer 2 markings to allow for more granularity in identifying traffic classes.
    • C、 Traffic classes are marked with Layer 3 markings to allow them to traverse different network types without loss of QoS information.
    • D、 Traffic classes allow networks to provide proper QoS treatment of packets without applications having to request services.
    • E、 Based upon the network capabilities, QoS markings are placed on packets as needed throughout the network to allow for proper QoS treatment of packets.
    • F、 QoS markings are placed on packets as close to the network edge as possible to allow distribution and core devices to determine QoS actions as quickly as possible.

    正确答案:C,D,F

  • 第18题:

    In which two web application directories can dependent classes and libraries be located? ()

    • A、 /WEB-INF/lib as a JAR file
    • B、 /META-INF/lib as a JAR file
    • C、 /classes as compiled class files
    • D、 /WEB-INF/lib as compiled class files
    • E、 /WEB-INF/classes as compiled class files
    • F、 /META-INF/classes as compiled class files

    正确答案:A,E

  • 第19题:

    单选题
    You’ve already missed too many classes this term. You _____ two classes just last week.
    A

    missed

    B

    would miss

    C

    had missed

    D

    have missed


    正确答案: C
    解析:
    句意:这个学期你已经错过了太多的课程。你上星期没上两节课。last week是表示过去的时间状语,应该用一般过去时,故为A。

  • 第20题:

    单选题
    Students are expected to_____their classes regularly.
    A

    come

    B

    go

    C

    attend

    D

    follow


    正确答案: D
    解析:

  • 第21题:

    单选题
    public class SomeException {  } Class a:  public class a {  public void doSomething() { }  } Class b:  public class b extends a {  public void doSomething() throws SomeException { }  }  Which is true about the two classes?()
    A

     Compilation of both classes will fail.

    B

     Compilation of both classes will succeed.

    C

     Compilation of class a will fail. Compilation of class b will succeed.

    D

     Compilation of class a will fail. Compilation of class a will succeed.


    正确答案: B
    解析: 暂无解析

  • 第22题:

    多选题
    Which two statements about the QoS policy generation phase of the Cisco SDM QoS wizard are true? ()
    A

    The SDM QoS wizard will create two real-time traffic classes to handle VoIP and voice signaling packets.

    B

    The SDM QoS wizard will create three real-time traffic classes to handle VoIP, voice signaling, and video packets.

    C

    The SDM QoS wizard will create four real-time traffic classes to handle VoIP, voice signaling, video, and video streaming packets.

    D

    The SDM QoS wizard will create two business-critical traffic classes to handle transactional and network management packets.

    E

    The SDM QoS wizard will create three business-critical traffic classes to handle transactional, network management, and routing packets.

    F

    The SDM QoS wizard will create four business-critical traffic classes to handle transactional, network management, routing, and best-effort packets.


    正确答案: C,F
    解析: 暂无解析

  • 第23题:

    单选题
    假设在目录myprj/src/school中有Java源文件Student.java,如果希望该文件编译后的类文件出现在目录myprj/classes/school中,应该使用下列哪一个命令?()
    A

    cd myprj/src javac –d ../classes school/Student.java

    B

    cd myprj/src javac ../classes school/*.java

    C

    cd myprj javac –d ../classes school/*.java

    D

    cd myprj/src/school javac –d ../classes school/Student.java


    正确答案: A
    解析: 暂无解析