public Lavoratore(string nome, string cognome, DateTime dataDiNascita, double retribuzione, DateTime?dataAssunzione, TipoLavoratore tipo, Guid persona_id) : base(nome, cognome, dataDiNascita) { Retribuzione = retribuzione; DataDiAssunzione = dataAssunzione; Tipo = tipo; Persona_ID = persona_id; }
public Lavoratore(Guid id, string nome, string cognome, int età, TipoLavoratore tip, int ret) { ID = id; Nome = nome; Cognome = cognome; Eta = età; Tipo = tip; Retribuzione = ret; }