You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
391 B
13 lines
391 B
public class AnimatedMovie extends Movie {
|
|
private String studio;
|
|
|
|
public AnimatedMovie(String title, int year, double rating, String genre, String studio) {
|
|
super(title, year, rating, genre);
|
|
this.studio = studio;
|
|
}
|
|
|
|
@Override
|
|
public void play() {
|
|
System.out.println("动画电影播放:" + getTitle() + ",制作公司:" + studio);
|
|
}
|
|
}
|
|
|