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 9Answer
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 calledClub,Member,Name, 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 thename,memberID,andclubof 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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!