Files
Testate/WS2425/Testat 2b/MediaItem.java
T
2025-07-21 16:03:34 +02:00

53 lines
764 B
Java

public abstract class MediaItem { // TODO: change
/**
* The duration of the item.
*/
// TODO: add variable
/**
* The title of the item.
*/
// TODO: add variable
/**
* The views of the item.
*/
// TODO: add variable
/**
* Creates a media library item.
*
* @param title The title of the item.
* @param duration The duration of the item.
*/
public MediaItem(int duration, String title, int views) {
// TODO: assign member variables
}
/**
* Returns the title of the item.
*
* @return The title of the item.
*/
public String getTitle() {
return title;
}
/**
* Returns the views of the item.
*
* @return The views of the item.
*/
public int getViews() {
return views;
}
// TODO: toString
}