?? movie.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 + -