?? movie.java
字號:
public abstract class Movie {
/* the title of the movie*/
private String title;
/*the name of the actors in the movie*/
private String[] actors;
/* the director of the movie*/
private String director;
/*constructor*/
public Movie(String initialTitle,
String[] initialActors,
String initialDirector) {
this.title = initialTitle;
this.actors = initialActors;
this.director = initialDirector;
}
/*return the value of title*/
public String getTitle() {
return this.title;
}
/*return the reference to the array of actors*/
public String[] getActors() {
return this.actors;
}
/*return the value of the director*/
public String getDirector() {
return this.director;
}
/*to string*/
public String toString() {
return this.title;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -