📄 bankoperations.cs
字号:
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);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -