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

📄 practical quiz 8.movie.java

📁 CMU SSD3 课程完整答案(除EXAM)
💻 JAVA
字号:
/**
 * This abstract class stores the information of a movie.
 * 
 * @author Neil
 * @version 1.0.0
 */
public abstract class Movie {
	
	private String title;
	private String[] actors;
	private String director;

	/**
	 * Creates a Movie object and initializes the instance variables.
	 * 
	 * @param initialTitle
	 * @param initialActors
	 * @param initialDirector
	 */
	public Movie(String initialTitle, String[] initialActors,
			String initialDirector) {

		title = initialTitle;
		actors = initialActors;
		director = initialDirector;
	}

	/**
	 * Returns the value of the variable title.
	 * 
	 * @return Returns the value of the variable title.
	 */
	public String getTitle() {

		return title;
	}

	/**
	 * Returns a reference to the array actors.
	 * 
	 * @return Returns a reference to the array actors.
	 */
	public String[] getActors() {

		return actors;
	}

	/**
	 * Returns the value of the variable director.
	 * 
	 * @return Returns the value of the variable director.
	 */
	public String getDirector() {

		return director;
	}

	/**
	 * Returns the value of the variable title.
	 * 
	 * return Returns the value of the variable title.
	 */
	public String toString() {

		return title;
	}
}

⌨️ 快捷键说明

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