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
388 B
13 lines
388 B
public class XiaohongshuMovie extends Movie {
|
|
private String author;
|
|
|
|
public XiaohongshuMovie(String title, int year, double rating, String genre, String author) {
|
|
super(title, year, rating, genre);
|
|
this.author = author;
|
|
}
|
|
|
|
@Override
|
|
public void play() {
|
|
System.out.println("小红书笔记:" + getTitle() + ",作者:" + author);
|
|
}
|
|
}
|
|
|