-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathAccount.cs
More file actions
28 lines (25 loc) · 730 Bytes
/
Account.cs
File metadata and controls
28 lines (25 loc) · 730 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
using System;
namespace BankCurse
{
public class Account
{
public int AccountId { set; get; }
public Client Client { set; get; }
public double Balance { set; get; }
public Currency Currency { set; get; }
public string OpenDate { set; get; } = DateTime.Today.ToString("yyyy-MM-dd");
public bool IsChanged { set; get; }
public Account(int accountId, Client client, double balance, Currency currency)
{
AccountId = accountId;
Client = client;
Balance = balance;
Currency = currency;
IsChanged = true;
}
public Account()
{
IsChanged = false;
}
}
}