/*internal Account() * { * Console.WriteLine("Name:"); * this.Name = Console.ReadLine(); * this.Id = (++serialNo).ToString(); * this.OpeningDate = openingDate; * this.Address = address; * Console.WriteLine("Balance:"); * this.Balance = Convert.ToDouble(Console.ReadLine()); * }*/ internal Account(MyDate openingDate, OurAddress address) { Console.WriteLine("Name:"); this.Name = Console.ReadLine(); this.Id = (++serialNo).ToString(); this.OpeningDate = openingDate; this.Address = address; Console.WriteLine("Balance:"); this.Balance = Convert.ToDouble(Console.ReadLine()); }
internal LoanAccount(MyDate openingDate, OurAddress address) : base(openingDate, address) { this.Id = (++serialNo).ToString(); }