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

📄 movie.cs

📁 北大青鸟ACCP课程S2项目案例2影院售票系统
💻 CS
字号:
using System;
using System.Collections.Generic;
using System.Text;

namespace CinemaTicket
{
    /// <summary>
    /// 电影类
    /// </summary>
    [Serializable]
    class Movie
    {

        /// <summary>
        /// 主演
        /// </summary>
        private string actor;

        public string Actor
        {
            get { return actor; }
            set { actor = value; }
        }

        /// <summary>
        /// 导演名
        /// </summary>
        private string director;

        public string Director
        {
            get { return director; }
            set { director = value; }
        }

        /// <summary>
        /// 电影名
        /// </summary>
        private string movieName;

        public string MovieName
        {
            get { return movieName; }
            set { movieName = value; }
        }


        /// <summary>
        /// 电影类型
        /// </summary>
        private MovieType movieType;

        public MovieType MovieType
        {
            get { return movieType; }
            set { movieType = value; }
        }

        /// <summary>
        /// 海报图片名
        /// </summary>
        private string poster;

        public string Poster
        {
            get { return poster; }
            set { poster = value; }
        }

        /// <summary>
        /// 定价
        /// </summary>
        private int price;

        public int Price
        {
            get { return price; }
            set { price = value; }
        }




        /// <summary>
        /// 添加构造函数
        /// </summary>
        public Movie() { }
        public Movie(string actor, string director, string movieName, MovieType movieType, string poster, int price)
        {
            this.Actor = actor;
            this.Director = director;
            this.MovieName = MovieName;
            this.MovieType = movieType;
            this.Poster = poster;
            this.Price = price;
        }
    }
}

⌨️ 快捷键说明

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