1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
wolverine [178]
3 years ago
7

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.

Computers and Technology
1 answer:
laila [671]3 years ago
6 0

This is the Composite pattern, one of the "Gang-of-Four" design patterns (check out their book!).

You might be interested in
(--BRAINLIEST--)<br>Explain the types of secondary memory on the basis of data access.​
Nina [5.8K]

There are two types of secondary memories.

  1. RAM
  2. ROM

RAM:

  • RAM stands for random access memory .
  • It is expandable.
  • we can do multiple things in it.
  • Its erasable.

ROM

  • ROM stands for read only memory.
  • It is permanent .
  • We can only read in it.
  • Its permanent hence not removable.
8 0
3 years ago
Read 2 more answers
7. Explain the steps for formatting a shape ?
alisha [4.7K]

Answer:

To begin, select the shapes you want to format. To select more than one, press and hold the Shift key. When you select one or more shapes, a new Drawing Tools tab appears. Here, you can select Shape Fill to fill the selected shapes with a solid color, gradient, texture, or picture.

Explanation:

3 0
3 years ago
Which of the following are associated with Public Key encryption? (Select all that apply.) Question 2 options: a) Asymmetric key
tatiyna

Answer:

A- ASYMMETRIC KEYS

Explanation:

Assymmetric keys are public keys that are use for encryption. They are public keys which may be disseminated or share widely, they are usually know by everyone. The keys come in pairs in which what one key encrypts, only the other can decrypt.

Asymmetric keys allows someone to send their public key in an open and insecure channel.

3 0
3 years ago
If you double the force of and object what happens to the acceleration
Vera_Pavlovna [14]

Answer:

As we increase the force on an object the acceleration increases proportionally. Since the mass does not change as the acceleration increases, we can say that force is equal to acceleration

7 0
3 years ago
Arden's doctor has suggested she begin eating more nuts, red meat, and legumes to adjust a slight ________ deficiency.
stich3 [128]

iron or magnesium makes the most sense


4 0
4 years ago
Other questions:
  • Which group on the Home Ribbon allows you to add shapes to a PowerPoint slide?
    10·2 answers
  • It is always better to run over and give more information when you are giving a presentation versus quitting on time. true false
    15·2 answers
  • Question 9<br> Any data in your Access database can be converted into labels using the
    12·1 answer
  • Write a program that lets the user play the game of Rock, Paper, Scissors against the computer. The program should work as follo
    15·1 answer
  • When entering data into a cell, which keyboard key is used to remove characters to the left of the insertion point?
    12·1 answer
  • PLSSS HELP!! During the late 20th century, immigration to the United States increased dramatically from
    7·1 answer
  • ¿Who is the target user of the bird quiz?
    14·1 answer
  • Xxx<br>uuuuuu<br>uuuu<br>jjnmn<br>jjh
    12·1 answer
  • I WILL GIVE MOST BRAINLY
    13·1 answer
  • The part of the computer that provides access to the internet is the
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!