first commit
This commit is contained in:
36
Semester 1/Programming 1/Java/examples/projects/chapter04/club/Club.java
Executable file
36
Semester 1/Programming 1/Java/examples/projects/chapter04/club/Club.java
Executable file
@@ -0,0 +1,36 @@
|
||||
/**
|
||||
* Store details of club memberships.
|
||||
*
|
||||
* @author (your name)
|
||||
* @version (a version number or a date)
|
||||
*/
|
||||
public class Club
|
||||
{
|
||||
// Define any necessary fields here ...
|
||||
|
||||
/**
|
||||
* Constructor for objects of class Club
|
||||
*/
|
||||
public Club()
|
||||
{
|
||||
// Initialise any fields here ...
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Add a new member to the club's list of members.
|
||||
* @param member The member object to be added.
|
||||
*/
|
||||
public void join(Membership member)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @return The number of members (Membership objects) in
|
||||
* the club.
|
||||
*/
|
||||
public int numberOfMembers()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user