• 2022-06-15
    Suppose module puppy depends on module dog and module dog depends on module animal. Fill in the blank so that code in module dog can access the animal.behavior package in module animal.module animal { ___________ animal.behavior;}
    A: export
    B: exports
    C: requires
    D: requires transitive
  • B

    内容

    • 0

      定义了Animal类、Cat类和Dog类,则()代码段是正确的。classAnimal{};classCatextendsAnimal{ }classDogextendsAnimal{ } A: Dog[ ] ds=new Dog[5];ds[0]=new Animal(); B: Animal[ ] as=new Animal[5];as[0]=new Dog();

    • 1

      (7-1)定义了Animal类、Cat类和Dog类,则()代码段是正确的。classAnimal{};classCatextendsAnimal{}classDogextendsAnimal{} A: Dog[] a = new Dog[5];a[0] = new Cat(); B: Animal a = new Animal[5];a[0] = new Animal(); C: Dog[]a = new Dog[5];a[0] = new Animal(); D: Cat[]a = new Cat[5];a[0] = new Cat();

    • 2

      Is a dog ______ animal A: the B: an C: /

    • 3

      Is a dog ______ animal A: the B: an C: /

    • 4

      Is a dog ______ animal A: the B: an C: /