public static void Main(string[] args) { //BancoDados x = new BancoDados("Banco 1"); //Console.WriteLine(x.GetNome()); //BancoDados y = new BancoDados("Banco 2"); //Console.WriteLine(y.GetNome()); BancoDados x = BancoDados.RetornarObjeto(); Console.WriteLine(x.GetNome()); BancoDados y = BancoDados.RetornarObjeto(); Console.WriteLine(y.GetNome()); if (x == y) { Console.WriteLine("Mesmo objeto"); } else { Console.WriteLine("Objetos diferentes"); } Boleto a = new Boleto("00000"); Boleto b = new Boleto("00000"); Boleto c = new Boleto("00000"); Boleto d = new Boleto("00000"); Console.WriteLine(Boleto.GetN()); }