?? bankoperations.cs
字號(hào):
using System;
using System.Collections.Generic;
using System.Text;
namespace Project1
{
/// <summary>
/// This interface defines the common operations
/// involved in a banking system.
/// </summary>
public interface BankOperations
{
/// <summary>
/// Deposit operation
/// </summary>
/// <param name="acNo">Account number</param>
/// <param name="amount">Amount of money needs to be deposited</param>
void deposit(int acNo, double amount);
/// <summary>
/// Withdrawal operation
/// </summary>
/// <param name="acNo">Account number</param>
/// <param name="amount">Amount of money needs to be withdrawn</param>
void withdraw(int acNo, double amount);
/// <summary>
/// Transfer operation
/// </summary>
/// <param name="from">Source account number</param>
/// <param name="to">Destination account number</param>
/// <param name="amount">Amount of money needs to be transfered</param>
void transfer(int from, int to, double amount);
/// <summary>
/// Balance enquiry operation
/// </summary>
/// <param name="acNo">Account number</param>
/// <returns>The balance of the account number enquiried</returns>
double getBalance(int acNo);
/// <summary>
/// Transaction checking operation
/// </summary>
/// <param name="acNo">Account number</param>
void getTransDetails(int acNo);
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -