-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNoteBook.java
More file actions
37 lines (30 loc) · 744 Bytes
/
NoteBook.java
File metadata and controls
37 lines (30 loc) · 744 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
public class NoteBook {
private String name;
private int memory;
private int hd;
private String os;
private String color;
public NoteBook (String name, int memory, int hd, String os, String color) {
this.name = name;
this.memory = memory;
this.hd = hd;
this.os = os;
this.color = color;
}
public int getMemory() {
return memory;
}
public int getHd() {
return hd;
}
public String getOs() {
return os;
}
public String getColor() {
return color;
}
@Override
public String toString() {
return "\n" + name + " | Memory: " + memory + " HD: " + hd + " OS: " + os + " Color: " + color;
}
}