Ejemplo n.º 1
0
 public override void PrintInfo()
 {
     Console.WriteLine("Название организации: {0}", Name);
     Console.WriteLine("Дата открытия счета: {0}", AccountDate.ToShortDateString());
     Console.WriteLine("Номер счета: {0}", AccountNumber);
     Console.WriteLine("Сумма на счету: {0}", AccountAmount);
 }
Ejemplo n.º 2
0
            public override string PrintInfo()
            {
                string s = "";

                s += "Название организации: " + Name + "\n";
                s += "Дата открытия счета: " + AccountDate.ToShortDateString() + "\n";
                s += "Номер счета: " + AccountNumber + "\n";
                s += "Сумма на счету: " + AccountAmount + "\n";
                return(s);
            }