This topic contains a solution. Click here to go to the answer

Author Question: Apply the concept of polymorphism to Person/ Work or another object/operation of your choice. ... (Read 20 times)

Brittanyd9008

  • Hero Member
  • *****
  • Posts: 500
Apply the concept of polymorphism to Person/ Work or another object/operation of your choice.
 
  What will be an ideal response?

Question 2

Compare and contrast the use case diagram and an activity diagram.
 
  What will be an ideal response?



Related Topics

Need homework help now?

Ask unlimited questions for free

Ask a Question
Marked as best answer by a Subject Expert

rnehls

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

Person is a superclass with a Work responsibility. Person can have numerous subclasses, including Doctor, Mechanic, and Cook. Instances of all subclasses must work, but the work that they actually do is very different from each other: when objects belonging to Person subclasses are told to work, the Doctor treats patients, while the Mechanic fixes cars and the Cook prepares food. In other words, the same message, Work, is implemented differently depending on the nature of the object, not the nature of the message.

Answer to Question 2

A use case diagram is a visual meta-model: it does not model the use case itself, but the associations between actors, use cases, and the system. It also depicts extend and include relationships between use cases and provides us with a visual table of contents. An activity diagram is a general-purpose diagram for visualizing and verifying a logical flow. For a use case with a complicated alternate flow, an activity diagram is a very helpful tool. Its simplicity facilitates communication between development stakeholders.




Brittanyd9008

  • Member
  • Posts: 500
Reply 2 on: Jul 7, 2018
YES! Correct, THANKS for helping me on my review


TheDev123

  • Member
  • Posts: 332
Reply 3 on: Yesterday
Gracias!

 

Did you know?

Drug-induced pharmacodynamic effects manifested in older adults include drug-induced renal toxicity, which can be a major factor when these adults are experiencing other kidney problems.

Did you know?

Malaria was not eliminated in the United States until 1951. The term eliminated means that no new cases arise in a country for 3 years.

Did you know?

The liver is the only organ that has the ability to regenerate itself after certain types of damage. As much as 25% of the liver can be removed, and it will still regenerate back to its original shape and size. However, the liver cannot regenerate after severe damage caused by alcohol.

Did you know?

The first war in which wide-scale use of anesthetics occurred was the Civil War, and 80% of all wounds were in the extremities.

Did you know?

Adolescents often feel clumsy during puberty because during this time of development, their hands and feet grow faster than their arms and legs do. The body is therefore out of proportion. One out of five adolescents actually experiences growing pains during this period.

For a complete list of videos, visit our video library