A computer game is designed for users to select characters. Each character can take part in a group of events. Each group has five events. There are four types of event: jump, swim, run, drive. The program is written using object-oriented programming. The class Event Item stores data about the events. (i) Write program code to declare the class Event Item and its constructor. Do not declare the other methods. Use your programming language's appropriate constructor. All attributes must be private. If you are writing in Python, include attribute declarations, using comments. Save your program as Question1_N24. Copy and paste the program code into part 1(a)(i) in the evidence document. (ii) The get methods GetName(), GetDifficulty() and GetEventType() each return the relevant attribute. Write program code for the three get methods. Save your program. Copy and paste the program code into part 1(a)(ii) in the evidence document.
Exam No:9618_w24_qp_42 Year:2024 Question No:1(a)
Answer:



Knowledge points:
19.1 Algorithms
20.1 Programming Paradigms
Solution:
Download APP for more features
1. Tons of answers.
2. Smarter Al tools enhance your learning journey.
IOS
Download
Download
Android
Download
Download
Google Play
Download
Download