-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBuilding.java
More file actions
42 lines (32 loc) · 756 Bytes
/
Building.java
File metadata and controls
42 lines (32 loc) · 756 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
package org.example;
public class Building {
private long id;
public String tipi;
public String adresa;
public Building(long id, String tipi, String adresa) {
this.id = id;
this.tipi = tipi;
this.adresa = adresa;
}
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public String getTipi() {
return tipi;
}
public void setTipi(String tipi) {
this.tipi = tipi;
}
public String getAdresa() {
return adresa;
}
public void setAdresa(String adresa) {
this.adresa = adresa;
}
public void printAddress(){
System.out.println("Building address is: " + this.adresa);
}
}