Files
2025-09-04 12:47:27 +02:00

54 lines
898 B
Java

/**
* A class representing an item in a media library.
*/
public 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 with the specified title, duration and views.
*
* @param title The title of the item.
* @param duration The duration of the item.
* @param views The views 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
}