-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCarrera.java
More file actions
93 lines (71 loc) · 1.98 KB
/
Copy pathCarrera.java
File metadata and controls
93 lines (71 loc) · 1.98 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
import java.util.Date;
public class Carrera
{
private String codigo;
private String nombre;
private Integer semestre;
private Integer numeroCreditos;
private String titulo;
private String director;
private Date fechaInicio;
public Carrera(){
}
public Carrera(String codigo,String nombre,Integer semestre,Integer numeroCreditos,String titulo,String director,
Date fechaInicio){
this.codigo=codigo;
this.nombre=nombre;
this.semestre=semestre;
this.numeroCreditos=numeroCreditos;
this.titulo=titulo;
this.director=director;
this.fechaInicio=fechaInicio;
}
//GETTER
public String getCodigo(){
return this.codigo;
}
public String getNombre(){
return this.nombre;
}
public Integer getSemestre(){
return this.semestre;
}
public Integer getNumeroCreditos(){
return this.numeroCreditos;
}
public String getTitulo(){
return this.titulo;
}
public String getDirector(){
return this.director;
}
public Date getFechaInicio(){
return this.fechaInicio;
}
//SETTER
public void setCodigo(String codigo){
this.codigo = codigo;
}
public void setNombre(String nombre){
this.nombre = nombre;
}
public void setSemestre(Integer semestre){
this.semestre = semestre;
}
public void setNumcreditos(Integer numeroCreditos){
this.numeroCreditos = numeroCreditos;
}
public void setTitulo(String titulo){
this.titulo = titulo;
}
public void setDirector(String director){
this.director = director;
}
public void setFechaInicio(Date fechaInicio){
this.fechaInicio = fechaInicio;
}
//MUESTRA EL NUMERO DE CREDITOS
public void mostrarCreditos(){
System.out.println("Los creditos de la carrera son:" +getNumeroCreditos());
}
}