using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CD_Account_Test
{
    class SavingsAccount
    {
        // Pola.
        private string _accountNumber;
        private decimal _interestRate;
        private decimal _balance;

        // Konstruktor.
        public SavingsAccount()
        {
            _accountNumber = "";
            _interestRate = 0;
            _balance = 0;
        }

        // Właściwość AccountNumber.
        public string AccountNumber
        {
            get { return _accountNumber; }
            set { _accountNumber = value; }
        }

        // Właściwość InterestRate.
        public decimal InterestRate
        {
            get { return _interestRate; }
            set { _interestRate = value; }
        }

        // Właściwość Balance.
        public decimal Balance
        {
            get { return _balance; }
            set { _balance = value; }
        }
    }
}
