static void Main(string[] args) { Console.Beep(); tinta miTintilla = new tinta(); tinta miTinta = new tinta(); bool todoOk; // Console.WriteLine(tinta.mostrar(miTintilla)); todoOk = miTintilla == miTinta; if (todoOk) { Console.WriteLine("las tintas son iguales"); } else { Console.WriteLine("las tintas son diferentes"); } Console.ReadKey(); }
public static string mostrar(tinta algo) { return(algo.mostrar()); }