Exemplo n.º 1
0
 private string Mostrar()
 {
     return(this._Marca + ", " + this._Cantidad.ToString() + Tinta.Mostrar(this._Tinta));
 }
Exemplo n.º 2
0
 public static string Mostrar(Tinta t)//De clase
 {
     return(t.Mostrar());
 }
Exemplo n.º 3
0
 private string Mostrar()
 {
     return("Marca: " + this._cantidad + " Cantidad: " + this._cantidad + Tinta.Mostrar(this._tinta) + "\n");
 }
Exemplo n.º 4
0
 /// <summary>
 /// Mostrara informacion segun el objeto que le paso
 /// </summary>
 /// <param name="tipo">Objeto</param>
 /// <returns></returns>
 public static string Mostrar(Tinta tipo)
 {
     return(tipo.Mostrar());
 }