( ) is an important concept since it allows reuse of a class definition without requiring major code changes.A.InheritanceB.PolymorphismC.EncapsulationD.DatA.hiding

( ) is an important concept since it allows reuse of a class definition without requiring major code changes.

A.Inheritance
B.Polymorphism
C.Encapsulation
D.DatA.hiding

参考解析

解析:继承是一个重要的概念,因为它使得无需对代码做大的改变就能重用类定义。

相关考题:

● The project (73)is a key input to quality planning since it documents major project deliverables, the project objectives that serve to define important stakeholder requirements, thresholds, and acceptance criteria.(73)A. work performance informationB. scope statementC. change requestsD. process analysis

The project()is a key input to quality planning since it documents major project deliverables,the project objectives that serve to define important stakeholder requirements,thresholds,and acceptance criteriaA.work performance informationB.scope statementC.change requestsD.process analysis

The project(73)is a key input to quality planning since it documents major project deliverables, the project objectives that serve to define important stakeholder requirements, thresholds, and acceptance criteria.A.work performance informationB.scope statementC.change requestsD.process analysis

Given:Which code, inserted at line 14, allows the Sprite class to compile?() A.Direction d = NORTH;B.Nav.Direction d = NORTH;C.Direction d = Direction.NORTH;D.Nav.Direction d = Nav.Direction.NORTH;

Given:Which code, inserted at line 15, allows the class Sprite to compile?() A.Foo { public int bar() { return 1; }B.new Foo { public int bar() { return 1; }C.new Foo() { public int bar() { return 1; }D.new class Foo { public int bar() { return 1; }

The purpose of the requirements definition phase is to produce a clear, complete, consistent, and testable(71 )of the technical requirements for the software product.During the requirements definition phase, the requirements definition team uses an iterative process to expand a broad statement of the system requirements into a complete and detailed specification of each function that the sofrware must perform. and each(72)that it must meet. The starting point is usually a set of high-level requirements from the(73)that describe the project or problem.In either case, the requirements definition team formulates an overall concept for the system and then defines(74)showing how the system will be operated, publishes the system and operations concept document, and conducts a system concept review(SCR).Following the SCR, the team derives(75)requirements for the system from the high level requirements and the system and operations concept. Using structured or object-oriented analysis, the team specifies the software functions and algorithms needed to satisfy each detailed requirement.A.functionB.definitionC.specificationD.statement

( ) is an important concept since it allows reuse of a class definition without requiring major code changes.A. InheritanceB. PolymorphismC. EncapsulationD. Data hiding

What benefit results from implementation of Layer 3 switching versus Layer 2 switching in a fully meshed campus network?()A、ease of IP address assignment versus use of external routersB、redundancy from trunking between distribution layer switchesC、provides first-hop redundancy to clientsD、allows inter-VLAN communication without requiring complexity of routing protocols

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.

Which line contains a constructor in this class definition?()   public class Counter { // (1)   int current, step;   public Counter(int startValue, int stepValue) { // (2)   set(startValue);   setStepValue(stepValue);  }   public int get() { return current; } // (3)   public void set(int value) { current = value; } // (4)   public void setStepValue(int stepValue) { step = stepValue; } // (5)  }  A、Code marked with (1) is a constructorB、Code marked with (2) is a constructorC、Code marked with (3) is a constructorD、Code marked with (4) is a constructorE、Code marked with (5) is a Constructor

A developer used wsimport to generate the skeleton code for a Web service implementation. What is the purpose of the generated ObjectFactory class?() A、 The ObjectFactory class is the generated Service Endpoint Interface classB、 The ObjectFactory class is the generated service provider class that is used by the JAX-WS client.C、 The ObjectFactory class takes the targetNamespace value and creates the directory structure.D、 The ObjectFactory class allows you to programatically construct new instances of the Java representation for XML content.

Which two are benefits of fully encapsulating a class?()  A、 Performance of class methods is improved.B、 Implementation details of the class are hidden.C、 Access modifiers can be omitted on class data members.D、 Code that uses the encapsulation class can access data members directly.E、 Internal operation of the class can be modified without impacting clients of that class.

Given the following interface definition, which definitions are valid?()   interface I {   void setValue(int val);   int getValue();   }    DEFINITION a:   (a) class a extends I {  int value;   void setValue(int val) { value = val;  }   int getValue() {  return value;  }   }   DEFINITION b:   (b) interface b extends I {   void increment();   }   DEFINITION c:   (c) abstract class c implements I {   int getValue() {  return 0;  }  abstract void increment();   }   DEFINITION d:   (d) interface d implements I {  void increment();  }   DEFINITION e:   (e) class e implements I {  int value;   public void setValue(int val) { value = val; }  }  A、Definition a.B、Definition b.C、Definition c.D、Definition d.E、Definition e.

Which two are characteristics of the Intercepting Filter pattern?()A、 it provides centralized request handling for incoming requests.B、 It forces resource authentication to be distributed across web components.C、 It reduces coupling between presentation-tier clients and underlying business services.D、 It can be added and removed unobtrusively, without requiring changes to existing  code.E、 It allows preprocessing and postprocessing on the incoming requests and outgoing  responses.

Which statements about inheritance are true?()         A、 In Java programming language only allows single inheritance.B、 In Java programming language allows a class to implement only one interface.C、 In Java programming language a class cannot extend a class and implement a interface together.D、 In Java programming language single inheritance makes code more reliable.

public class Plant {  private String name;  public Plant(String name) { this.name = name; }  public String getName() { return name; }  }  public class Tree extends Plant {  public void growFruit() { }  public void dropLeaves() { }  }  Which is true?() A、 The code will compile without changes.B、 The code will compile if public Tree() { Plant(); } is added to the Tree class.C、 The code will compile if public Plant() { Tree(); } is added to the Plant class.D、 The code will compile if public Plant() { this(”fern”); } is added to the Plant class.E、 The code will compile if public Plant() { Plant(”fern”); } is added to the Plant class.

Which three will compile and run without exception?()A、private synchronized Object o;B、void go() {synchronized() { /* code here */ }C、public synchronized void go() { /* code here */ }D、private synchronized(this) void go() { /* code here */ }E、void go() {synchronized(Object.class) { /* code here */ }F、void go() {Object o = new Object();synchronized(o) { /* code here */ }

You create a server control that inherits from WebControl. You need to enable the server control to emit markup for a new kind of mobile device. You must not alter the code in the server controls. Which two actions should you perform?()A、Create a class that inherits HtmlTextWriter and that can emit the new markup.B、Create a class that inherits StreamWriter and that can emit the new markup.C、Reference the class in the capabilities element of the new device's browser definition file.D、Reference the class in the controlAdapters element of the new device's browser definition file.

多选题Which two are characteristics of the Intercepting Filter pattern?()Ait provides centralized request handling for incoming requests.BIt forces resource authentication to be distributed across web components.CIt reduces coupling between presentation-tier clients and underlying business services.DIt can be added and removed unobtrusively, without requiring changes to existing  code.EIt allows preprocessing and postprocessing on the incoming requests and outgoing  responses.

多选题Which two are true?()AAn encapsulated, public class promotes re-use.BClasses that share the same interface are always tightly encapsulated.CAn encapsulated class allows subclasses to overload methods, but does NOT allow overriding methods.DAn encapsulated class allows a programmer to change an implementation without affecting outside code.

单选题The project()is a key input to quality planning since it documents major project deliverables, the project objectives that serve to define important stakeholder requirements,thresholds, and acceptance criteria.Awork performance informationBscope statementCchangerequestsDprocess analysis

多选题Which statements about inheritance are true?()AIn Java programming language only allows single inheritance.BIn Java programming language allows a class to implement only one interface.CIn Java programming language a class cannot extend a class and implement a interface together.DIn Java programming language single inheritance makes code more reliable.

单选题public class Plant {  private String name;  public Plant(String name) { this.name = name; }  public String getName() { return name; }  }  public class Tree extends Plant {  public void growFruit() { }  public void dropLeaves() { }  }  Which is true?()A The code will compile without changes.B The code will compile if public Tree() { Plant(); } is added to the Tree class.C The code will compile if public Plant() { Tree(); } is added to the Plant class.D The code will compile if public Plant() { this(”fern”); } is added to the Plant class.E The code will compile if public Plant() { Plant(”fern”); } is added to the Plant class.

多选题Which three will compile and run without exception?()Aprivate synchronized Object o;Bvoid go(){   synchronized(){/* code here */}Cpublic synchronized void go(){/* code here */}Dprivate synchronized(this) void go(){/* code here */}Evoid go(){   synchronized(Object.class){/* code here */}Fvoid go(){   Object o = new Object();   synchronized(o){/* code here */}

单选题A developer used wsimport to generate the skeleton code for a Web service implementation. What is the purpose of the generated ObjectFactory class?()A The ObjectFactory class is the generated Service Endpoint Interface classB The ObjectFactory class is the generated service provider class that is used by the JAX-WS client.C The ObjectFactory class takes the targetNamespace value and creates the directory structure.D The ObjectFactory class allows you to programatically construct new instances of the Java representation for XML content.

单选题10. class Nav{  11. public enum Direction { NORTH, SOUTH, EAST, WEST }  12. }  13. public class Sprite{  14. // insert code here  15. }  Which code, inserted at line 14, allows the Sprite class to compile?()A Direction d = NORTH;B Nav.Direction d = NORTH;C Direction d = Direction.NORTH;D Nav.Direction d = Nav.Direction.NORTH;

单选题You need to create a class definition that is interoperable along with COM.You need to ensure that COM applications can create instances of the class and can call the GetAddress method. Which code segment should you use?()A AB BC CD D