Question: You need to develop a Java application that keeps track of the membership information of a particular club. Your application needs to store each member's
You need to develop a Java applicationthat keeps track of the membership information of a particular club. Your application needs to store each member's name and membership ID
What would be the best class design for the program?
Question Answer
a
The program should have a single class calledClub This class should have fields storing thenameandmemberIDof each member.
b
The program should have four classes calledClubMemberName andMemberID TheClubclass should hold a list ofMemberobjects and theMemberclass should contain references to theNameandMemberIDobjects
c
The program should have a single class calledMember This class should have fields storing thenamememberIDandclubof the member.
d
The program should have two classes calledClubandMember TheMemberclass should have fields holding thenameandmemberIDof each member, and theClubclass should hold a list ofMemberobjects
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
