예제 #1
0
        /*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());
        }
예제 #2
0
        internal LoanAccount(MyDate openingDate, OurAddress address) : base(openingDate, address)
        {
            this.Id = (++serialNo).ToString();

        }