21 lines
484 B
C#
21 lines
484 B
C#
namespace SingleResponsibility
|
|
{
|
|
public class Customer
|
|
{
|
|
public int Id { get; set; }
|
|
public string Name { get; set; }
|
|
public decimal Balance { get; set; }
|
|
|
|
public Customer(int id, string name, decimal balance)
|
|
{
|
|
Id = id;
|
|
Name = name;
|
|
Balance = balance;
|
|
}
|
|
|
|
public void GetBalance()
|
|
{
|
|
Console.WriteLine($"Your balance is: {Balance}");
|
|
}
|
|
}
|
|
}
|