Files
Testate/WS2526/Testat 2b/Series.java
T

25 lines
571 B
Java

public class Series extends MediaItem {
/**
* Creates a new series with the duration, title and views.
*
* @param duration The duration.
* @param title The title.
* @param views The views.
*/
public Series(int duration, String title, int views) {
super(duration, title, views);
}
/**
* Returns a string representation of the series.
*
* @return A string representation of the series.
*/
@Override
public String toString() {
return "Series: " + super.toString();
}
}