colegio/src/db/asignatura.vala

16 lines
463 B
Vala
Raw Normal View History

2019-07-16 10:40:44 -04:00
namespace Colegio {
namespace DB {
public class Asignatura : Object {
public int id_asignatura { get; set; default = 0; }
public string nombre { get; set; default = ""; }
public Profesor profesor { get; set; default = new Profesor(); }
2019-07-19 17:08:07 -04:00
public Asignatura (int id_asignatura = 0, string nombre = "", Profesor profesor = new Profesor ()) {
2019-07-16 10:40:44 -04:00
this.id_asignatura = id_asignatura;
this.nombre = nombre;
this.profesor = profesor;
}
}
}
}