colegio/src/db/curso.vala

24 lines
670 B
Vala
Raw Normal View History

2019-07-20 17:24:55 -04:00
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;
}
}
}
}