Question 5
Answer all questions in this section based on the information contained in the short scenario below: • Joseph is a doctor. • He works at the Chris Hani Baragwanath Academic Hospital in Soweto. • He is responsible for the “Voice of Cancer Anti-Stigma Project”.
Q.5.1 Create a class diagram that will accurately depict the class described in the scenario above. Your diagram should demonstrate the following: • At least three attributes; • A getter and setter method for each attribute; • Access specifiers.
Q.5.2 Write the pseudocode for the mainline logic that will show how the instance methods defined in Q.5.1 can be called by the object. Declare and populate the object. Do not write the methods (only the mainline logic).
Question 5 Answer all questions in this section based on the information contained in the short scenario below: • Joseph
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am