0% found this document useful (0 votes)
90 views3 pages

Section B 1 Question Essay

This document contains instructions and questions for a Java programming final exam. It includes a UML class diagram showing classes for a membership management system. Students are asked to write Java code for the ManagementCttee, Member, StandardMember, and SeniorMember classes based on their descriptions and relationships shown in the diagram. The exam is worth 50 marks total and consists of writing code for the constructors and methods of each class.

Uploaded by

Mohammed SH
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
90 views3 pages

Section B 1 Question Essay

This document contains instructions and questions for a Java programming final exam. It includes a UML class diagram showing classes for a membership management system. Students are asked to write Java code for the ManagementCttee, Member, StandardMember, and SeniorMember classes based on their descriptions and relationships shown in the diagram. The exam is worth 50 marks total and consists of writing code for the constructors and methods of each class.

Uploaded by

Mohammed SH
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

SULIT SKJ1013/A202/A

No. Matrik:

FINAL EXAMINATION
SEMESTER II, ACADEMIC SESSION 2020/2021

DATE : JULY 2021 DURATION : 2 HOURS

SKJ1013
JAVA PROGRAMMING
(PENGATURCARAAN JAVA)

INSTRUCTIONS TO CANDIDATES:
1. This paper contains one (1) section.
Section B : 1 Question (50 marks)
2. Candidate is required to answer all questions displayed through the online
platform.
3. Candidate is required to fill in Borang Aku Janji before starts the examination.

DO NOT OPEN THIS QUESTION PAPER UNTIL YOU ARE INSTRUCTED TO DO SO


This question paper has seven (7) pages excluding this cover page

HAKCIPTA TERPELIHARA USIM


SULIT SKJ1013/A202/A

SECTION B
[50 MARKS]
ANSWER ALL QUESTIONS IN THE ANSWER BOOKLET PROVIDED.

1. Consider this UML class diagram in Figure 1 showing part of a program to


manage the membership information for a professional society:

Figure 1: UML Diagram for Question 1

a) Write a Java version of class ManagementCttee assuming it has this


constructor: public ManagementCttee()

[10 Marks]

b) Class Member is an abstract class. Explain the role of an abstract class.

[10 Marks]

HAKCIPTA TERPELIHARA USIM


1
SULIT SKJ1013/A202/A

c) Write a Java version of class Member assuming it has this constructor:

public Member(String name, String address) and that the


method getFee() is abstract.

[10 Marks]

d) Write a Java version of class StandardMember assuming it has this


constructor: public StandardMember(String name, String
address) and the standard membership fee is fixed at RM50.

[10 Marks]

e) Write a Java version of class SeniorMember assuming it has this


constructor: public SeniorMember(String name, String
address, int fee.

[10 Marks]

END OF QUESTIONS

Dicetak oleh:

Unit Peperiksaan dan Pengijazahan


Bahagian Pengurusan Akademik
Universiti Sains Islam Malaysia

HAKCIPTA TERPELIHARA USIM


2

You might also like