public override string ToString() { return("Cor do Retangulo = " + Cor + ", largura = " + Largura.ToString("F2", CultureInfo.InvariantCulture) + ", altura = " + Altura.ToString("F2", CultureInfo.InvariantCulture) + ", area = " + Altura.ToString("F2", CultureInfo.InvariantCulture)); }
//operação para converter a classe em string public override string ToString() { return("Cores do Retangulo = " + Cores + ", Largura = " + Largura.ToString("F2", CultureInfo.InvariantCulture) + ", Altura = " + Altura.ToString("F2", CultureInfo.InvariantCulture) + ", Area = " + Area().ToString("F2", CultureInfo.InvariantCulture)); }
public override string ToString() { return("Cor do Retangulo = " + Cor + ", Largura = " + Largura.ToString("F2") + ", Altura = " + Altura.ToString("F2") + ", Area = " + Area().ToString("F2")); }