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 30 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
Thanks for the timely response, appreciate it


FergA

  • Member
  • Posts: 352
Reply 3 on: Yesterday
YES! Correct, THANKS for helping me on my review

 

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?

More than 50% of American adults have oral herpes, which is commonly known as "cold sores" or "fever blisters." The herpes virus can be active on the skin surface without showing any signs or causing any symptoms.

Did you know?

Essential fatty acids have been shown to be effective against ulcers, asthma, dental cavities, and skin disorders such as acne.

Did you know?

The oldest recorded age was 122. Madame Jeanne Calment was born in France in 1875 and died in 1997. She was a vegetarian and loved olive oil, port wine, and chocolate.

Did you know?

In ancient Rome, many of the richer people in the population had lead-induced gout. The reason for this is unclear. Lead poisoning has also been linked to madness.

For a complete list of videos, visit our video library