accountdatabase.cs

来自「模拟银行系统的实现」· CS 代码 · 共 39 行

CS
39
字号
using System;
using System.Collections.Generic;
using System.Text;

namespace Project1
{
    /// <summary>
    /// This interface defines the basic functions of
    /// manipulating data in Account Database.
    /// </summary>
    public interface AccountDatabase
    {
        /// <summary>
        /// Add an account record into the database
        /// </summary>
        /// <param name="ac">An object of Account</param>
        void add(Account ac);

        /// <summary>
        /// Remove an account record from the database
        /// </summary>
        /// <param name="ac">An object of Account</param>
        void remove(Account ac);

        /// <summary>
        /// Update an account record in the database
        /// </summary>
        /// <param name="ac">An object of Account</param>
        void update(Account ac);

        /// <summary>
        /// Search for an account record in the database
        /// </summary>
        /// <param name="acNo">The account number of an account record</param>
        /// <returns>An account that has the coresponding account number</returns>
        Account search(int acNo);
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?