-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMateria.java
More file actions
26 lines (22 loc) · 802 Bytes
/
Materia.java
File metadata and controls
26 lines (22 loc) · 802 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
public class Materia {
private String codigo_mat;
private String nombre_mat;
private String descripcion_mat;
private int cred_teo_mat;
private int cred_prac_mat;
public Materia(){
}
public Materia(String matCodigo, String matNombre, String matDescrp, int matTeoricos, int matPracticos){
codigo_mat = matCodigo;
nombre_mat = matNombre;
descripcion_mat = matDescrp;
cred_teo_mat = matTeoricos;
cred_prac_mat = matPracticos;
}
public String presentarMateria(){
System.out.println("**************************************\n");
System.out.println(codigo_mat + " -" + nombre_mat + "\n");
System.out.println("Descripcion: "+ descripcion_mat + "\n");
System.out.println("Creditos -> teo: "+ cred_teo_mat + "pract: " + cred_prac_mat+ ".\n");
}
}