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
440 B

package com.yyt.moviecrawler.model;
public class DoubanMovie extends Movie {
public DoubanMovie(String title, double score, String type, String author) {
super(title, score, type, author);
}
// 必须实现父类的抽象方法 printInfo()
@Override
public void printInfo() {
System.out.println("豆瓣电影:《" + getTitle() + "》 | 评分:" + getScore() + " | 导演:" + getAuthor());
}
}