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
409 B
13 lines
409 B
public class AnimatedMovie extends Movie {
|
|
private String animationStudio;
|
|
|
|
public AnimatedMovie(String title, int year, double rating, String genre, String animationStudio) {
|
|
super(title, year, rating, genre);
|
|
this.animationStudio = animationStudio;
|
|
}
|
|
|
|
@Override
|
|
public void play() {
|
|
System.out.println("动画电影,制作公司:" + animationStudio);
|
|
}
|
|
}
|
|
|