-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTransaction.cs
More file actions
33 lines (30 loc) · 941 Bytes
/
Transaction.cs
File metadata and controls
33 lines (30 loc) · 941 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
29
30
31
32
33
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ObjectOrientedProject
{
public class Transaction
{
/// <summary>
/// Creates a type to represent a transaction, but doens't have any responsibilities.
/// Includes a few properties.
/// </summary>
public decimal Amount { get; set; }
public DateTime Date { get; set; }
public string Notes { get; set; }
/// <summary>
/// This is to keep an audit, history of each account transaction.
/// </summary>
/// <param name="amount"></param>
/// <param name="date"></param>
/// <param name="note"></param>
public Transaction(decimal amount, DateTime date, string note)
{
this.Amount = amount;
this.Date = date;
this.Notes = note;
}
}
}