📄 account.cs
字号:
using System;
using System.Collections.Generic;
using System.Text;
namespace Project1
{
/// <summary>
/// This Account class defines the properties of an account.
/// </summary>
public class Account
{
private int acNo;
private String acType;
private String custID;
private DateTime openDate;
private double balance;
private String status;
/// <summary>
/// The constructor of Account class
/// </summary>
/// <param name="acNo">Account number</param>
/// <param name="acType">Account type(Savings/Cheque/Credit)</param>
/// <param name="custID">Customer ID</param>
/// <param name="openDate">Opening date</param>
/// <param name="balance">Balance of the account</param>
/// <param name="status">Status of the account(Open/Closed)</param>
public Account(int acNo, String custID,String acType,
DateTime openDate, double balance, String status)
{
this.acNo = acNo;
this.acType = acType;
this.custID = custID;
this.openDate = openDate;
this.balance = balance;
this.status = status;
}
/// <summary>
/// Default constructor of Account class
/// </summary>
public Account()
{
acNo = 0;
acType = "";
custID = "";
openDate = new DateTime(0);
balance = 0.0;
status = "";
}
/// <summary>
/// Set and get account number
/// </summary>
public int iAcNo
{
get
{
return acNo;
}
set
{
acNo = value;
}
}
/// <summary>
/// Set and get account type
/// </summary>
public String sAcType
{
get
{
return acType;
}
set
{
acType = value;
}
}
/// <summary>
/// Set and get customer ID
/// </summary>
public String sCustID
{
get
{
return custID;
}
set
{
custID = value;
}
}
/// <summary>
/// Set and get account opening date
/// </summary>
public DateTime dOpenDate
{
get
{
return openDate;
}
set
{
openDate = value;
}
}
/// <summary>
/// Set and get account balance
/// </summary>
public double dBalance
{
get
{
return balance;
}
set
{
balance = value;
}
}
/// <summary>
/// Set and get account status
/// </summary>
public String sStatus
{
get
{
return status;
}
set
{
status = value;
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -