1. Based on the below UML diagram, write the implementation code to represent each class? 2. in the main method of HumanTest class create: a Human object named humanl with the following information(name is "Ali" with healthy heart) Heart Human -isHealthy: boolean -name: String heart: Heart Heart(isHealthy: boolean) +getisHealthy(): boolean +setisHealthy(healthy: boolean): void +Human(name: String) +getName(). String +setName(name: String): void

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter10: Introduction To Inheritance
Section: Chapter Questions
Problem 20RQ
icon
Related questions
Question

Code this in c sharp 

البوابة التعليمية الإلكترونية لجامعة الإسراء earn
estion 1
1. Based on the below UML diagram, write the implementation code to represent each
st yet
swered
class?
2. in the main method of HumanTest class create:
arked out of
a Human object named humanl with the following information(name is "Ali" with a
healthy heart)
- Flag
Fin
uestion
Human
Heart
Tim
-isHealthy: boolean
-name: String
-heart: Heart
+Human(name: String)
+getName(). String
+setName(name: String): void
+Heart(isHealthy: boolean)
+getisHealthy(): boolean
+setlsHealthy(healthy: boolean): void
A-
E E
Transcribed Image Text:البوابة التعليمية الإلكترونية لجامعة الإسراء earn estion 1 1. Based on the below UML diagram, write the implementation code to represent each st yet swered class? 2. in the main method of HumanTest class create: arked out of a Human object named humanl with the following information(name is "Ali" with a healthy heart) - Flag Fin uestion Human Heart Tim -isHealthy: boolean -name: String -heart: Heart +Human(name: String) +getName(). String +setName(name: String): void +Heart(isHealthy: boolean) +getisHealthy(): boolean +setlsHealthy(healthy: boolean): void A- E E
Expert Solution
steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Knowledge Booster
Fundamentals of Boolean Algebra and Digital Logics
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning