Ejemplo n.º 1
0
 public Vendedor(string pNombre, string pApellido, string pDNI, DatosContacto pDatosContacto)
 {
     this.Nombre        = pNombre;
     this.Apellido      = pApellido;
     this.DNI           = pDNI;
     this.DatosContacto = pDatosContacto;
 }
Ejemplo n.º 2
0
 public Persona(string nombre, string apellido, DatosContacto datosContacto)
 {
     Nombre        = nombre;
     Apellido      = apellido;
     DatosContacto = datosContacto;
     ID            = 1;
 }
Ejemplo n.º 3
0
 public ClienteIndividuo(string Nombre, string Apellido, string CUIT, DatosContacto pDatosContacto)
 {
     this.Nombre        = Nombre;
     this.CUIT          = CUIT;
     this.Apellido      = Apellido;
     this.DatosContacto = pDatosContacto;
 }
Ejemplo n.º 4
0
 public Empresa(string pNombre, string pCUIT, Persona pContacto, DatosContacto pDatosContacto)
 {
     this.Nombre        = pNombre;
     this.CUIT          = pCUIT;
     this.Contacto      = pContacto;
     this.DatosContacto = pDatosContacto;
 }
Ejemplo n.º 5
0
        public Persona(string pNombre, string pApellido, DatosContacto pDatosContacto)
        {
            if (pNombre == "")
            {
                throw new Exception("Nombre es obligatrio");
            }

            if (pNombre.Length < 1 || pNombre.Length > 50)
            {
                throw new Exception("Nombre puede contener entre 1 y 50 caracteres");
            }

            if (pApellido == "")
            {
                throw new Exception("Apellido es obligatrio");
            }

            if (pApellido.Length < 1 || pApellido.Length > 50)
            {
                throw new Exception("Apellido puede contener entre 1 y 50 caracteres");
            }


            this.Nombre        = pNombre;
            this.Apellido      = pApellido;
            this.DatosContacto = pDatosContacto;
        }
 public ClienteIndividuo(string pNombre, string pApellido, string pCUIT, DatosContacto pDatosContacto)
 {
     this.Nombre        = pNombre;
     this.Apellido      = pApellido;
     this.CUIT          = pCUIT;
     this.DatosContacto = pDatosContacto;
 }
Ejemplo n.º 7
0
 public Persona(int pId, string pNombre, string pApellido, DatosContacto pDatosContacto)
 {
     this.Id            = pId;
     this.Nombre        = pNombre;
     this.Apellido      = pApellido;
     this.DatosContacto = pDatosContacto;
 }
Ejemplo n.º 8
0
 public override string ToString()
 {
     return
         ("Nombre=" + Nombre +
          "Apellido=" + Apellido +
          "Dni=" + Dni +
          DatosContacto.ToString());
 }
Ejemplo n.º 9
0
 public Empresa(int pId, string pNombre, string pCUIT, string pContacto, DatosContacto pDatosContacto)
 {
     this.Id            = pId;
     this.Nombre        = pNombre;
     this.CUIT          = pCUIT;
     this.Contacto      = pContacto;
     this.DatosContacto = pDatosContacto;
 }
Ejemplo n.º 10
0
 public Vendedor(
     string nombre,
     string apellido,
     string dni,
     DatosContacto datosContacto)
     : base(nombre, apellido, datosContacto)
 {
     Dni = dni;
 }
 public ClienteIndividuo(
     string nombre,
     string apellido,
     string cuit,
     DatosContacto datosContacto)
     : base(nombre, apellido, datosContacto)
 {
     Cuit = cuit;
 }
Ejemplo n.º 12
0
 public Persona(string pNombre, string pApellido, DatosContacto datos)
 {
     Nombre        = pNombre;
     Apellido      = pApellido;
     DatosContacto = datos;
 }
Ejemplo n.º 13
0
 public Vendedor(string pNombre, string pApellido, DatosContacto datos) : base(pNombre, pApellido, datos)
 {
 }
Ejemplo n.º 14
0
 public ClienteIndividuo(string pNombre, string pApellido, string pCUIT, DatosContacto datos) : base(pNombre, pApellido, datos)
 {
     this.CUIT = pCUIT;
 }
 public ClienteIndividuo(int pId, int pId_Persona, string pNombre, string pApellido, string pCUIT, DatosContacto pDatosContacto)
 {
     this.Id            = pId;
     this.Id_Persona    = pId_Persona;
     this.Nombre        = pNombre;
     this.Apellido      = pApellido;
     this.CUIT          = pCUIT;
     this.DatosContacto = pDatosContacto;
 }
Ejemplo n.º 16
0
 public Empresa(string pNombre, string pCUIT, DatosContacto datosCont)
 {
     this.Nombre        = pNombre;
     this.CUIT          = pCUIT;
     this.DatosContacto = datosCont;
 }