首页/ 题库 / [单选题]In looking at the cl的答案

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.

单选题
2022-01-04 16:42
A、distinction
B、level
C、grade
D、hierarchy
查看答案

正确答案
D

试题解析

标签:
感兴趣题目
阅读下面的短文,回答问题 [When an IP packet arrives at a router, generally the router looks at the destination address of the packet, and forwards the packet to one of its network interfaces. The forwarding decision is usually done by looking up the destination address from another data structure called a forwarding table. The forwarding table is created by the router using the routing table and possible routing policies existing in the router. The router then creates a table where it lists which networks are accessible through which of the router’s network interfaces. An IP router looks at every IP packet individually and does the forwarding decision on a packet-by-packet basis. If something changes in the router’s routing table, a packet can take a different route from a preceding packet even if it has the same destination.] From the paragraph above,we can see that the router ( ) a forwarding table according to the routing table and possible routing policies existing in the router. When an IP packet arrives at a router, the ( ) part of packet is normally checked by the router. An IP router checks every IP Packet individually and makes the forwarding decision based on ( ).
A bank opens an L/C at the request of the importer. It is a (an)().
The manager was (entire) ____ unaware of the trouble with the heating system in the hotel until this week.
In the reign of William I,the()were at the bottom of the feudal scale.
It is assumed that students at an intermediate level will have a good()of the basic structures and vocabulary of English.
He succeeded()out a lot of things entirely new in the world.
Examine the query and its output executed In an RDBMS Instance:Which three statements are true about the users (other than sys) in the output?()
As an important phase in software development, software design is the continuation of software requirement analysis phasE.Ⅰ.software structureⅡ.software procedureⅢ.software moduleⅣ.software documentwhich of the following should be included in software design phase?
Deep-draught vessels and VLCCs shall allow for()of at least 3.5 m at all times during the entire passage through the Straits of Malacca and Singapore.
The straight stream capability of an all-purpose nozzle is used in fighting a class A fire to().
●Traditional structured analysis techniques focus upon the flow of(71)within a system Object-oriented analysis emphasizes the building of real-world models It examines requirements from the perspective of the classes and objects found in the vocabulary of the(72)domain
In a class of 160 seniors, the ratio of boys to girls is 3 to 5. In the junior class, the ratio of boys to girls is 3 to 2. When the two classes are combined, the ratio of boys to girls is 1 to 1. How many students are in the junior class?
相关题目
Passage FiveIn the United States, it is important to be on time, or punctual, for an appointment, a class, etc. However, this may not be true in all countries. An American professor discovered this difference while teaching a class in a Brazilian (巴西的) university. The two-hour class was scheduled' to begin at 10 M. and end at 12. On the first day, when the professor arrived on time, no one was in the classroom. Many students came after the scheduled time. Several arrived half an hour later. Few apologized for their lateness. Were these students being rude? He decided to study the students, behavior.The professor talked to American and Brazilian students about lateness in both an informal and a formal situation: at a lunch with a friend and in a university class. He found that if they had a lunch appointment with a friend, the average American student defined lateness as 19 minutes after the agreed time. However, the average Brazilian student felt the friend was late after 33 minutes.In an American university, classes not only begin at the scheduled time in the United States, but also end at the scheduled time. In the Brazilian class, only a few students left the class at 12: 00; many remained past 12: 30 to discuss the class and ask more questions. While arriving late may not be very important in Brazil, neither is staying late.51. The word "punctual' most probably means______.
. Why did the boy look at the writer closely in the third paragraph?( )
He looked at the magician..s tricks in ( ).
He is looking at himself in the mirror. 他正在照镜子。
Generally speaking, the __________ specifies whether a certain tagmeme is NOT in the position of the Nucleus or of the Margin in the structure
In an oil cooler circulated by sea water, the oil is at a larger pressure the result being that any leak in the cooler will mean a loss of ().
Which of the listed problems would be indicated by an accumulation of water in one cylinder, in addition to the crankcase of an idle diesel engine?()
The holding power of an anchor at a given scope of cable increases when the().
The task of the general design stage in structured life circle method is, to build what kind of software system structure?
The view menu is used to display the document in one of several view modes. The view mode"( 75 )" makes it easy to look at the structure of a document.
The view menu is used to display the document in one of several view modes. The view mode "(74)" makes it easy to look at the structure of a document.
In the spoken English of some areas in the US, the "r" sounds at the end of thewords______.
In writing up the logbook at the end of your watch,you make an erron in writing an entry. What is the proper means of correcting this error?().
In writing up the logbook at the end of your watch,you make an error in writing an entry. What is the proper way of correcting this error? ()
In writing up the log book at the end of your watch,you make an error.which of the following is the way to correct the error().
If the result of loading a vessel is an increase in the height of the center of gravity,there will always be an increase in the().
An increase in the load on a turbocharged diesel engine operating at constant speed will result in an increase in ()
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.
He succeeded()out a lot of things entirely new in the world.
To make sure of getting the full advantage of a favorable current,you should reach an entrance or strait at what time in relation to the predicted time of the favorable current?()
广告位招租WX:84302438

免费的网站请分享给朋友吧