Computers and Technology

You review a design written by somebody else for an application and you find these: - an interface shape with a method draw() - a class circle that implements shape - a class rectangle that implements shape - a class compoundshape that: o implements interface shape o aggregates 0 or more shape objects, o has an extra method called add(shape sh) o for implementing method draw() calls the draw() method for all aggregated shape objects. you assume that a compoundshape object is made of multiple shapes. what design pattern is at work in this application? explain your answer.

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 02:40, lizzlegnz999
Respecting individual differencespre-test active2time remaining48: 47nina is exploring her gender identity and sexual orientationwhich best describes how the role of the media might influence nina during this time in her life? the media would her decide because television shows are always unbiased about gender issues and do notstereotypethe media could make things difficult for her because television sometimes portrays rigid ideas about gender roles. all forms of media will her decide because the media always portrays rigid ideas about gender roles. all forms of media will make things easy for her because the media always portrays open and fair ideas about gender roles.
Answers: 1
image
Computers and Technology, 22.06.2019 15:30, micahpauleen748
In a compound condition, both conditions on either side of the logical operator and must be true for the overall condition to be true. a: true b: false
Answers: 1
image
Computers and Technology, 22.06.2019 17:00, hollodom9654
Which of the following is not contained on the slide show toolbar? a. next button b. slide button c. close button d. pen tool
Answers: 1
image
Computers and Technology, 23.06.2019 12:10, jefersina16
2. fabulously fit offers memberships for$35 per month plus a $50 enrollmentfee. the fitness studio offersmemberships for $40 per month plus a$35 enrollment fee. in how many monthswill the fitness clubs cost the same? what will the cost be?
Answers: 1
Do you know the correct answer?
You review a design written by somebody else for an application and you find these: - an interface...

Questions in other subjects:

Konu
Mathematics, 08.01.2021 18:00