-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProduto.java
More file actions
68 lines (50 loc) · 1.31 KB
/
Produto.java
File metadata and controls
68 lines (50 loc) · 1.31 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
57
58
59
60
61
62
63
64
65
66
67
68
package com.example.henning.gelomatica;
import java.io.Serializable;
/**
* Created by Henning on 09/11/2016.
*/
//produto TEXT, tipo TEXT, preco FLOAT, endereco TEXT, empresa TEXT
public class Produto implements Serializable {
private long id;
private String cerveja,tipo,bar,endereco;
private float preco;
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public String getTipo() {
return tipo;
}
public void setTipo(String tipo) {
this.tipo = tipo;
}
public String getBar() {
return bar;
}
public void setBar(String bar) {
this.bar = bar;
}
public float getPreco() {
return preco;
}
public void setPreco(float preco) {
this.preco = preco;
}
public String getEndereco() {
return endereco;
}
public void setEndereco(String endereco) {
this.endereco = endereco;
}
public String getCerveja() {
return cerveja;
}
public void setCerveja(String cerveja) {
this.cerveja = cerveja;
}
public String toString() {
return " "+cerveja+" "+tipo+"\n Preço: R$"+preco+"\n Bar: "+bar+" \n Endereço: "+endereco+"\n";
}
}