Question 5
(Marks: 35) Answer all questions in this section based on theinformation contained in the short scenario below: • Joseph is adoctor. • He works at the Chris Hani Baragwanath Academic Hospitalin Soweto. • He is responsible for the “Voice of Cancer Anti-StigmaProject”.
Q.5.1 Create a class diagram that will accurately depict theclass described in the scenario above. Your diagram shoulddemonstrate the following: • At least three attributes; • A getterand setter method for each attribute; • Access specifiers. (20) ©The Independent Institute of Education (Pty) Ltd 2022 Page 4 of 520; 21, 22 2022
Q.5.2 Write the pseudocode for the mainline logic that will showhow the instance methods defined in Q.5.1 can be called by theobject. Declare and populate the object. Do not write the methods(only the mainline logic).
Question 5 (Marks: 35) Answer all questions in this section based on the information contained in the short scenario bel
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am