fictor.cs

来自「影院售票管理系统 (1)具有方便、快速的售票功能」· CS 代码 · 共 29 行

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

namespace dianyingyuan
{
    class fictor
    {
        public static Ticket haha(string type, string num, Movie name, int jiage, string time, string zeng, int ze) 
        {
            Ticket tic = null;
            switch(type)
            {
                case "pu":
                     tic = new Ticket(num, name, jiage, time);
                    break;
                case "zeng":
                     tic = new ZengTicket(num, name, jiage, time, zeng);
                    break;
                case "stu":
                     tic = new StudentTicket(num, name, jiage, time,ze);
                    break;

            }
            return tic;
        }
    }
}

⌨️ 快捷键说明

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