24 lines
670 B
Vala
24 lines
670 B
Vala
|
namespace Colegio {
|
||
|
namespace DB {
|
||
|
public class Curso : Object {
|
||
|
public string id_curso { get; set; default = ""; }
|
||
|
public string nombre { get; set; default = ""; }
|
||
|
public string anyo { get; set; default = ""; }
|
||
|
public Profesor profesor { get; set; default = new Profesor (); }
|
||
|
|
||
|
public Curso (string id_curso = "", string nombre = "", string anyo = "", Profesor profesor = new Profesor ()) {
|
||
|
this.id_curso = id_curso;
|
||
|
this.nombre = nombre;
|
||
|
this.anyo = anyo;
|
||
|
this.profesor = profesor;
|
||
|
}
|
||
|
|
||
|
public void copy (Curso curso) {
|
||
|
this.id_curso = curso.id_curso;
|
||
|
this.nombre = curso.nombre;
|
||
|
this.anyo = curso.anyo;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|