⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bankoperations.cs

📁 模拟银行系统的实现
💻 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 + -