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

📄 customer.cs

📁 模拟银行系统的实现
💻 CS
字号:
using System;
using System.Collections.Generic;
using System.Text;

namespace Project1
{
    /// <summary>
    /// This Customer class inherites the common properties
    /// from the User Interface, and defines its own properties
    /// as well.
    /// </summary>
    public class Customer : User
    {
        private String city;
        private String address;
        private String custID;
        private String userID;
        private String password;
        private String name;
        private String gender;
        private DateTime dob;
        private String email;
        private int fax;
        private int pin;
        private String state;
        private int tel;

        /// <summary>
        /// Constructor of the Customer class
        /// </summary>
        /// <param name="userID">User ID of the customer</param>
        /// <param name="password">Passowrd of the customer</param>
        /// <param name="custID">Customer ID of the customer</param>
        /// <param name="name">Name of the customer</param>
        /// <param name="gender">Gender of the customer</param>
        /// <param name="dob">Date of birth of the customer</param>
        /// <param name="address">Address of the customer</param>
        /// <param name="city">City which the customer lives in</param>
        /// <param name="state">State which the customer lives in</param>
        /// <param name="pin">Pin code which presents the customer's living area</param>
        /// <param name="tel">Telephone number of the customer</param>
        /// <param name="fax">Fax number of the customer</param>
        /// <param name="email">Email of the customer</param>
        public Customer(String custID, String userID, String password,
                        String name, String gender, DateTime dob,
                        String address, String city, String state,
                        int pin, int tel, int fax, String email)
        {
            this.userID = userID;
            this.password = password;
            this.custID = custID;
            this.name = name;
            this.gender = gender;
            this.dob = dob;
            this.address = address;
            this.city = city;
            this.state = state;
            this.pin = pin;
            this.tel = tel;
            this.fax = fax;
            this.email = email;
        }

        /// <summary>
        /// Default constructor of the Customer class
        /// </summary>
        public Customer()
        {
            userID = "";
            password = "";
            custID = "";
            name = "";
            gender = "";
            dob = new DateTime(0);
            address = "";
            city = "";
            state = "";
            pin = 0;
            tel = 0;
            fax = 0;
            email = "";
        }

        /// <summary>
        /// Set and get the property of address
        /// </summary>
        public String sAddress
        {
            get
            {
                return address;
            }
            set
            {
                address = value;
            }
        }

        /// <summary>
        /// Set and get the property of city
        /// </summary>
        public String sCity
        {
            get
            {
                return city;
            }
            set
            {
                city = value;
            }
        }

        /// <summary>
        /// Set and get the property of customer ID
        /// </summary>
        public String sCustID
        {
            get
            {
                return custID;
            }
            set
            {
                custID = value;
            }
        }

        /// <summary>
        /// Set and get the property of user ID
        /// </summary>
        public String sUserID
        {
            get
            {
                return userID;
            }
            set
            {
                userID = value;
            }
        }

        /// <summary>
        /// Set and get the property of user password
        /// </summary>
        public String sPassword
        {
            get
            {
                return password;
            }
            set
            {
                password = value;
            }
        }

        /// <summary>
        /// Set and get the property of customer name
        /// </summary>
        public String sName
        {
            get
            {
                return name;
            }
            set
            {
                name = value;
            }
        }

        /// <summary>
        /// Set and get the property of customer gender
        /// </summary>
        public String sGender
        {
            get
            {
                return gender;
            }
            set
            {
                gender = value;
            }
        }

        /// <summary>
        /// Set and get the property of customer DOB
        /// </summary>
        public DateTime dDob
        {
            get
            {
                return dob;
            }
            set
            {
                dob = value;
            }
        }

        /// <summary>
        /// Set and get the property of customer email
        /// </summary>
        public String sEmail
        {
            get
            {
                return email;
            }
            set
            {
                email = value;
            }
        }

        /// <summary>
        /// Set and get the property of customer fax number
        /// </summary>
        public int iFax
        {
            get
            {
                return fax;
            }
            set
            {
                fax = value;
            }
        }

        /// <summary>
        /// Set and get the property of customer pin code
        /// </summary>
        public int iPin
        {
            get
            {
                return pin;
            }
            set
            {
                pin = value;
            }
        }

        /// <summary>
        /// Set and get the property of state
        /// </summary>
        public String sState
        {
            get
            {
                return state;
            }
            set
            {
                state = value;
            }
        }

        /// <summary>
        /// Set and get the property of customer telephone number
        /// </summary>
        public int iTel
        {
            get
            {
                return tel;
            }
            set
            {
                tel = value;
            }
        }

    }
}

⌨️ 快捷键说明

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