-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBox.java
More file actions
48 lines (36 loc) · 873 Bytes
/
Box.java
File metadata and controls
48 lines (36 loc) · 873 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
//DO_NOT_EDIT_ANYTHING_ABOVE_THIS_LINE
package boxes;
import elements.User;
/**
* Represents a parent box class includes inbox and outbox.
* @author leylayayladere
* @version 1.0
*/
public class Box {
/**
* Owner of this <code>Box</code>.
*/
private User owner;
/**
* Creates a <code>Box</code> with specified <code>owner</code>.
* @param owner <code>User</code> of this <code>Box</code>.
*/
public Box(User owner) {
this.setOwner(owner);
}
/**
* Retrieves the value of <code>owner</code>.
* @return An object <code>User</code> data type.
*/
public User getOwner() {
return owner;
}
/**
* Sets the value of <code>owner</code> of this <code>Box</code>.
* @param owner A variable of type object <code>User</code>.
*/
public void setOwner(User owner) {
this.owner = owner;
}
}
//DO_NOT_EDIT_ANYTHING_BELOW_THIS_LINE