-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathVehiculo.java
More file actions
104 lines (76 loc) · 2.07 KB
/
Vehiculo.java
File metadata and controls
104 lines (76 loc) · 2.07 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package modelo;
/**
*
* @author carlos
*/
public abstract class Vehiculo {
private String patente;
private String marca;
private int rut;
private String foto;
private int anyo;
private int kilometraje;
private String tipo_bencina;
public Vehiculo() {
}
public Vehiculo(String patente, String marca, int rut, String foto, int anyo, int kilometraje, String tipo_bencina) {
this.patente = patente;
this.marca = marca;
this.rut = rut;
this.foto = foto;
this.anyo = anyo;
this.kilometraje = kilometraje;
this.tipo_bencina = tipo_bencina;
}
public String getPatente() {
return patente;
}
public void setPatente(String patente) {
this.patente = patente;
}
public String getMarca() {
return marca;
}
public void setMarca(String marca) {
this.marca = marca;
}
public int getRut() {
return rut;
}
public void setRut(int rut) {
this.rut = rut;
}
public String getFoto() {
return foto;
}
public void setFoto(String foto) {
this.foto = foto;
}
public int getAnyo() {
return anyo;
}
public void setAnyo(int anyo) {
this.anyo = anyo;
}
public int getKilometraje() {
return kilometraje;
}
public void setKilometraje(int kilometraje) {
this.kilometraje = kilometraje;
}
public String getTipo_bencina() {
return tipo_bencina;
}
public void setTipo_bencina(String tipo_bencina) {
this.tipo_bencina = tipo_bencina;
}
@Override
public String toString() {
return "Vehiculo{" + "patente=" + patente + ", marca=" + marca + ", rut=" + rut + ", foto=" + foto + ", anyo=" + anyo + ", kilometraje=" + kilometraje + ", tipo_bencina=" + tipo_bencina + '}';
}
}