Files
Testate/WS2526/Testat 1b/MediaItem.java
T

53 lines
755 B
Java

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.
*
* @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
}