-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathClientPortfolio.cs
More file actions
39 lines (35 loc) · 1.08 KB
/
ClientPortfolio.cs
File metadata and controls
39 lines (35 loc) · 1.08 KB
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
34
35
36
37
38
39
using System;
using System.Collections.Generic;
using System.Text;
namespace Assignment_2
{
public class ClientPortfolio
{
public StockList StockList { get; set; }
public decimal PortfolioValue;
public string HolderName { get; set; }
public string HolderAddress { get; set; }
public string ContactNumber { get; set; }
// default constructor
public ClientPortfolio()
{
StockList = new StockList();
HolderName = null;
HolderAddress = null;
ContactNumber = null;
}
// Construtor for initialization
public ClientPortfolio(string holderName, string holderAddress, string contactNumber)
{
StockList = new StockList();
PortfolioValue = 0.0m;
HolderName = holderName;
HolderAddress = holderAddress;
ContactNumber = contactNumber;
}
public decimal GetPortfolioValue()
{
return this.StockList.Value();
}
}
}