-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCodorniz.java
81 lines (61 loc) · 1.51 KB
/
Codorniz.java
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
package proyecto3_floricela;
import java.io.*;
/**
*
* @author Flory
*/
public class Codorniz {
/*Declaraciones*/
private String nombre;
private Integer edad;
private String especie;
private Double peso;
private Integer num_id;
private String nombre_dueño;
/*Getters y Setters*/
public String getNombre() {
return nombre;
}
public Integer getEdad() {
return edad;
}
public String getEspecie() {
return especie;
}
public Double getPeso() {
return peso;
}
public Integer getNum_id() {
return num_id;
}
public String getNombre_dueño() {
return nombre_dueño;
}
public void setNombre(String nombre) {
this.nombre = nombre;
}
public void setEdad(Integer edad) {
this.edad = edad;
}
public void setEspecie(String especie) {
this.especie = especie;
}
public void setPeso(Double peso) {
this.peso = peso;
}
public void setNum_id(Integer num_id) {
this.num_id = num_id;
}
public void setNombre_dueño(String nombre_dueño) {
this.nombre_dueño = nombre_dueño;
}
/*Constructor*/
public Codorniz(String nombre, Integer edad, String especie, Double peso, Integer num_id, String nombre_dueño) {
this.nombre = nombre;
this.edad = edad;
this.especie = especie;
this.peso = peso;
this.num_id = num_id;
this.nombre_dueño = nombre_dueño;
}
}