A class design requires that a member variable cannot be accessible directly outside the class. Which modifier should be used to obtain the access control?()
You have a class C network, and you need to design it for 5 usable subnets with each subnet handling a minimum of 18 hosts each. Which of the following network masks should you use?A.225.225.224.0.B.225.225.240.0.C.225.225.255.0.D.255.255.255.224E.225.225.255.240
点击查看答案
C++ is used with proper(66) design techniques.A.class-orientedB.object-basedC.face to objectD.object-oriented
In software engineering the design phase is divided into( )。A.system design and detailed designB.computer design and program designC.system design and hardware designD.computer design and detailed design
In software engineering the design phase is divided into ( ). A.system design and detailed designB.computer design and program designC.system design and hardware designD.computer design and detailed design
A team of programmers is reviewing a proposed API for a new utility class.After some discussion, they realize that they can reduce the number of methods in the API without losing any functionality.If they implement the new design, which two principles will they be promoting?()A、Looser couplingB、Tighter couplingC、Lower cohesionD、Higher cohesionE、Weaker encapsulationF、Stronger encapsulation
public class Team extends java.util.LinkedList { public void addPlayer(Player p) { add(p); } public void compete(Team opponent) { /* more code here */ } } class Player { /* more code here */ } Which two are true?()A、 This code will compile.B、 This code demonstrates proper design of an is-a relationship.C、 This code demonstrates proper design of a has-a relationship.D、 A Java programmer using the Team class could remove Player objects from a Team object.
A team of programmers is involved in reviewing a proposed design for a new utility class. After some discussion, they realize that the current design allows other classes to access methods in the utility class that should be accessible only to methods within the utility class itself. What design issue has the team discovered?()A、Tight couplingB、Low cohesionC、High cohesionD、Loose couplingE、Weak encapsulationF、Strong encapsulation