subject

Suppose you have to design an application for drawing 2D geometric shapes. Some shapes are complex and may contain one or more shapes, basic or complex. For instance, a House shape includes 3 Rectangle (basic) shapes, a Chimney shape, and an Ellipse (basic) shape. The Chimney is a complex shape and includes 4 Line shapes. A complex shape behaves like a basic shape but also allows one to add/remove basic shapes to/from it.
What design pattern must be applied to these shape concepts ?
a. Strategy
b. Observer
c. Decorator
d. Composite

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 06:00
Which of the following is a way that advancements in technology improve humans' ability to measure air quality and protect human health? a. air quality data gathered by new instruments can be used to reduce exposure to pollutants. b. new technologies enable natural and human-made pollution sources to be located and monitored. c. air quality data gathered by new instruments can be used to predict trends in pollution over time. d. new technologies allow governments to make informed decisions about the regulation of pollution. (choose more than one)
Answers: 2
question
Computers and Technology, 23.06.2019 09:30
After you present a proposal, the committee starts asking you questions, some beyond the strict focus of your proposal. they ask questions about implications in other fields and knowledge about other fields. you are asked to redo your proposal. what is most likely missing? breadth of material depth of material clarity of material details of material
Answers: 1
question
Computers and Technology, 23.06.2019 12:40
According to the video what are some tasks petroleum engineers perform check all that apply
Answers: 2
question
Computers and Technology, 23.06.2019 15:00
To check whether your writing is clear , you can
Answers: 2
You know the right answer?
Suppose you have to design an application for drawing 2D geometric shapes. Some shapes are complex...
Questions
question
Mathematics, 24.03.2020 01:38
question
History, 24.03.2020 01:38
question
Chemistry, 24.03.2020 01:38