Author Question: The potential for benefiting from the Object Adapter pattern is vast. Give examples of situations ... (Read 60 times)

nevelica

  • Hero Member
  • *****
  • Posts: 563
The potential for benefiting from the Object Adapter pattern is vast. Give examples of situations when you can use this pattern.
 
  What will be an ideal response?

Question 2

Dynamic modeling portrays actions and interactions of a system's components to satisfy its behavioral requirements.
 
  Indicate whether the statement is true or false



spencer.martell

  • Sr. Member
  • ****
  • Posts: 342
Answer to Question 1

When we want to use an existing class, and its interface is not what we need, a reusable class does not have compatible interface, or several existing subclasses cannot adapt their interfaces one-by-one, then an object adapter can adapt the interface of its parent class.

Answer to Question 2

TRUE



Related Topics

Need homework help now?

Ask unlimited questions for free

Ask a Question
 

Did you know?

Dogs have been used in studies to detect various cancers in human subjects. They have been trained to sniff breath samples from humans that were collected by having them breathe into special tubes. These people included 55 lung cancer patients, 31 breast cancer patients, and 83 cancer-free patients. The dogs detected 54 of the 55 lung cancer patients as having cancer, detected 28 of the 31 breast cancer patients, and gave only three false-positive results (detecting cancer in people who didn't have it).

Did you know?

Every flu season is different, and even healthy people can get extremely sick from the flu, as well as spread it to others. The flu season can begin as early as October and last as late as May. Every person over six months of age should get an annual flu vaccine. The vaccine cannot cause you to get influenza, but in some seasons, may not be completely able to prevent you from acquiring influenza due to changes in causative viruses. The viruses in the flu shot are killed—there is no way they can give you the flu. Minor side effects include soreness, redness, or swelling where the shot was given. It is possible to develop a slight fever, and body aches, but these are simply signs that the body is responding to the vaccine and making itself ready to fight off the influenza virus should you come in contact with it.

Did you know?

The average office desk has 400 times more bacteria on it than a toilet.

Did you know?

Malaria mortality rates are falling. Increased malaria prevention and control measures have greatly improved these rates. Since 2000, malaria mortality rates have fallen globally by 60% among all age groups, and by 65% among children under age 5.

Did you know?

A good example of polar molecules can be understood when trying to make a cake. If water and oil are required, they will not mix together. If you put them into a measuring cup, the oil will rise to the top while the water remains on the bottom.

For a complete list of videos, visit our video library