-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUrun.java
More file actions
56 lines (45 loc) · 1.2 KB
/
Copy pathUrun.java
File metadata and controls
56 lines (45 loc) · 1.2 KB
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
48
49
50
51
52
53
54
55
56
package Project;
public class Urun {
private int urunId;
private String urunAdi;
private int miktar;
private int depoId;
// Constructor with all fields
public Urun(int urunId, String urunAdi, int miktar, int depoId) {
this.urunId = urunId;
this.urunAdi = urunAdi;
this.miktar = miktar;
this.depoId = depoId;
}
// Constructor without urunId (for new entries)
public Urun(String urunAdi, int miktar, int depoId) {
this.urunAdi = urunAdi;
this.miktar = miktar;
this.depoId = depoId;
}
// Getter and Setter methods
public int getUrunId() {
return urunId;
}
public void setUrunId(int urunId) {
this.urunId = urunId;
}
public String getUrunAdi() {
return urunAdi;
}
public void setUrunAdi(String urunAdi) {
this.urunAdi = urunAdi;
}
public int getMiktar() {
return miktar;
}
public void setMiktar(int miktar) {
this.miktar = miktar;
}
public int getDepoId() {
return depoId;
}
public void setDepoId(int depoId) {
this.depoId = depoId;
}
}