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 21 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


essyface1

  • Member
  • Posts: 347
Reply 3 on: Yesterday
:D TYSM

 

Did you know?

Amoebae are the simplest type of protozoans, and are characterized by a feeding and dividing trophozoite stage that moves by temporary extensions called pseudopodia or false feet.

Did you know?

In Eastern Europe and Russia, interferon is administered intranasally in varied doses for the common cold and influenza. It is claimed that this treatment can lower the risk of infection by as much as 60–70%.

Did you know?

An identified risk factor for osteoporosis is the intake of excessive amounts of vitamin A. Dietary intake of approximately double the recommended daily amount of vitamin A, by women, has been shown to reduce bone mineral density and increase the chances for hip fractures compared with women who consumed the recommended daily amount (or less) of vitamin A.

Did you know?

When blood is deoxygenated and flowing back to the heart through the veins, it is dark reddish-blue in color. Blood in the arteries that is oxygenated and flowing out to the body is bright red. Whereas arterial blood comes out in spurts, venous blood flows.

Did you know?

When taking monoamine oxidase inhibitors, people should avoid a variety of foods, which include alcoholic beverages, bean curd, broad (fava) bean pods, cheese, fish, ginseng, protein extracts, meat, sauerkraut, shrimp paste, soups, and yeast.

For a complete list of videos, visit our video library