Read again the last paragraph of Section 9.3.2. Try to draw a communication diagram that illustrates that
Question:
Read again the last paragraph of Section 9.3.2. Try to draw a communication diagram that illustrates that situation. Why is it a worse design than the diagram presented in Figure 9.29?
Section 9.3.2.
Transcribed Image Text:
9.3.2 Visibility by parameter Visibility by parameter is obtained when an object A, performing a method, receives an object B as a parameter. In that case, the object A can communicate to B even if their classes are not associated. Consider the example of Figure 9.24, where the Book class has no association to the Delivery class. Therefore, no instance of Book may send a message directly to an instance of Delivery or vice versa. Consider an instance of Order that is linked to an instance of Book and to an instance of Delivery as shown in Figure 9.25. Now, consider that the instance of Order sends a message registerWeight to the instance of Delivery, passing a reference to the instance of Book as an argument, as shown in Figure 9.26. Then, the instance of Delivery acquires visibility by parameter to the instance of Book. In the case of visibility by parameter, it should be assumed that the object that sends the argu- ment originally has some kind of visibility to the object that was sent.
Step by Step Answer:
This question has not been answered yet.
You can Ask your question!
Related Book For
Object Oriented Analysis And Design For Information Systems Modeling With UML OCL And IFML
ISBN: 9780124186736
1st Edition
Authors: Raul Sidnei Wazlawick
Question Posted:
Students also viewed these Computer science questions
-
can someone solve this Modern workstations typically have memory systems that incorporate two or three levels of caching. Explain why they are designed like this. [4 marks] In order to investigate...
-
A creative engineer suggests structuring the TLB so that not all the bits of the presented address need match to result in a hit. Suggest how this might be achieved, and what might be the costs and...
-
Question: What as the average weekly safety inventory level of refined sugar from the beginning January 2022 to the end of July 2022? A. 512,465.9691 metric tons per week B. 316,002.1474 metric tons...
-
What is the net present value of the following cash flows if the relevant discount rate is 7 percent? 0 -11520 1 81 2 650 3 880 4 2300 5 15800
-
The acid-dissociation constant for benzoic acid (C6H5COOH) is 6.3 ( 10-5. Calculate the equilibrium concentrations of H3O+, C6H5COOH in the solution if the initial concentration of C6H5COOH is 0.050...
-
What are the costs and benefits of developing a transcultural corporate ethic? Whose responsibility should it be to develop such an ethic - governments, corporations, intergovernmental organizations,...
-
How might the conflict resolution skills described in Chapter 12 help Hoi? LO.1
-
Using the data presented in E1-13, determine the amount Fortune Corporation would record as a gain on bargain purchase and prepare the journal entry Fortune would record at the time of the exchange...
-
In a cash flow statement, borrowed funds are listed under operating activities O investment activities financing activities O extracurricular activities
-
Draw a sequence diagram equivalent to the one in Figure 9.43. Figure 9.43 add2Cart(aCartId,anIsbn,aQuantity) 3: insertItem(aBook,aQuantity) : Livir 1: aCart=getCart(aCartld) 2: aBook:=getBook(anIsbn)...
-
Produce the contract for the searchBook query in Figure 8.2. loop ok. Customer loop 1: keyword* 2: book" Livir interface 3: selected book, quantity [ Reference system sequence diagram. Livir...
-
Here is the character table of the \(\mathbf{3 2}\) group. Demonstrate Theorem 6 using this character table. {E} {A, B, C) {D, F} 1 1 1 1 A 1 1 1 2 20 -1
-
Write a brief statement that interprets the confidence interval. Choose the correct answer below. A. There is a 99% chance that the true value of the population mean weight of newborn girls will fall...
-
Transcribed image text: If estimated annual factory overhead is $1,072,500; overhead is applied using direct labor hours, estimated annual direct labor hours are 275,000 actum March factory overhead...
-
Your firm has limited capital to invest and is therefore interested in comparing projects based on the profitability index (PI), as well as other measures. What is the PI of the project with the...
-
The following rates are applicable to annual payroll in British Columbia Question 17 options: 1234 1.95% x total B.C. remuneration 1234 2.925% x (B.C. remuneration - $500,000) 1234 Tax Rate 1234...
-
Assume that different groups of couples use a particular method of gender selection and each couple gives birth to one baby. This method is designed to increase the likelihood that each baby will be...
-
Riverton Mining plans to purchase or lease $220,000 worth of excavation equipment. If purchased, the equipment will be depreciated on a straight-line basis over five years, after which it will be...
-
How does Kant answer Humes bundle theory of self? Do you think he is successful?
-
A company is evaluating a new 4-year project. The equipment necessary for the project will cost $3,300,000 and can be sold for $650,000 at the end of the project. The asset is in the 5-year MACRS...
-
You have just been hired as a new management trainee by Earrings Unlimited, a distributor of earrings to various retail outlets located in shopping malls across the country. In the past, the company...
-
I need to see where the calculations for this problem come from plz. 5. Award: 4.00 points Lucido Products markets two computer games: Claimjumper and Makeover. A contribution format income statement...
Study smarter with the SolutionInn App