-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMember.java
More file actions
47 lines (41 loc) · 833 Bytes
/
Copy pathMember.java
File metadata and controls
47 lines (41 loc) · 833 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/**
* A member object has a name, and it is under a membership.
*
* @author KaiYun
* @version 2018-03-06
*/
public abstract class Member
{
//instance fields declaration
private String firstName;
private String lastName;
/**
* Constructs A memeber with a first name and a last name
*/
public Member(String first, String last)
{
firstName = first;
lastName = last;
}
/*
* Accessors
*/
/**
* Return the first name of a member
*
* @return the first name of a member
*/
public String getFirstName()
{
return firstName;
}
/**
* Return the last name of a member
*
* @return the last name of a member
*/
public String getLastName()
{
return lastName;
}
}