X-Git-Url: https://git.llucax.com/z.facultad/75.10/miklolife.git/blobdiff_plain/c36c16908f73901f367fe523aeef8dfb688ac2ff..fe47a91e2eb44b574d8889dd1d0556505f7924bc:/demo/src/Dominio/Plan.cs diff --git a/demo/src/Dominio/Plan.cs b/demo/src/Dominio/Plan.cs index 58f6bbb..659a2e3 100644 --- a/demo/src/Dominio/Plan.cs +++ b/demo/src/Dominio/Plan.cs @@ -15,9 +15,11 @@ public class Plan public int Codigo { get { return _codigo; } + set { _codigo = value; } } public float Categoria { get { return _categoria; } + set { _categoria = value; } } public string Descripcion { get { return _descripcion; } @@ -31,6 +33,11 @@ public class Plan get { return _fechaBaja; } } + public Plan () + { + _categoria = 0; + } + public Plan (float categoria) { /* TODO */ @@ -58,6 +65,11 @@ public class Plan { return _coberturas; } + + public override string ToString () + { + return String.Format ("Plan : {0} {1} {2}", _codigo, _categoria, _descripcion); + } } }