6.购票和打印电影票
7.继续购票
(5)测试
二、类的设计
献上这9个类的代码,根据依赖编写类的顺序,不能完全按照上面顺序
1.Seat:保存影院的座位信息,主要属性如下
座位号(SeatNum):string类型
座位卖出状态颜色(Color):System.Drawing.Color类型
?
- using System; using System.Collections.Generic;
- using System.Linq; using System.Text;
- using System.Threading.Tasks; using System.Drawing;
- namespace 影院售票系统
- { /// <summary>
- /// 保存影院的座位信息 /// </summary>
- public class Seat {
- public Seat() { } public Seat(string seatNum,Color color)
- { this.SeatNum = seatNum;
- this.Color = color; }
- private string _seatNum; /// <summary>
- /// 座位号 /// </summary>
- public string SeatNum {
- get { return _seatNum; } set { _seatNum = value; }
- } private Color _color;
- /// <summary> /// 座位卖出状态颜色
- /// </summary> public Color Color
- { get { return _color; }
- set { _color = value; } }
- } }
2.Movie:电影类
电影名(MovieName):string类型










