Exemplo n.º 1
0
 public Pluma(string marca, Tinta tinta, int cant) : this(tinta, cant)
 {
     this._marca = marca;
 }
Exemplo n.º 2
0
 private string mostrar()
 {
     return(this._marca.ToString() + "-" + this._cantidad.ToString() + "-" + Tinta.mostrar(this._tinta));
 }
Exemplo n.º 3
0
 public Pluma(Tinta tinta, int cant) : this(tinta)
 {
     this._cantidad = cant;
 }
Exemplo n.º 4
0
 public Pluma(Tinta tinta) : this()
 {
     this._tinta = tinta;
 }
Exemplo n.º 5
0
 public Pluma()
 {
     this._cantidad = 0;
     this._marca    = "Sin marca";
     this._tinta    = null;
 }
Exemplo n.º 6
0
 public static string mostrar(Tinta objeto)
 {
     return(objeto.mostrar());
 }
Exemplo n.º 7
0
 public Pluma(string marca, int cant, Tinta tint) : this(marca, cant)
 {
     this._tinta = tint;
 }