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
377 B
13 lines
377 B
public class TheatreMovie extends Movie {
|
|
private double price;
|
|
|
|
public TheatreMovie(String title, int year, double rating, String genre, double price) {
|
|
super(title, year, rating, genre);
|
|
this.price = price;
|
|
}
|
|
|
|
@Override
|
|
public void play() {
|
|
System.out.println("院线电影播放:" + getTitle() + ",票价:" + price);
|
|
}
|
|
}
|