This project is a Java application that simulates a movie and series streaming platform. It includes classes for movies, series, and episodes, and implements a classification system.
-
Title
: This is the base class for all titles on the platform. It includes properties such as name, release year, duration, and user plan inclusion. It also includes methods for rating the title and calculating the average rating. -
Movie
: This class extendsTitle
and implements theClassification
interface. It includes an additional property for the director of the movie. -
Episode
: This class implements theClassification
interface. It includes properties for the episode number, episode name, series it belongs to, and total visualizations. -
Classification
: This is an interface that includes a method for getting the classification of a title.
To use this application, create instances of Movie
or Series
, set their properties, and call their methods as needed. For example:
Movie TheMatrix = new Movie();
TheMatrix.setName("The Matrix");
TheMatrix.setReleaseYear(1999);
TheMatrix.setDurationInMinutes(136);
TheMatrix.setUserPlanIncluded(true);
TheMatrix.displayInfo();
TheMatrix.rateTitle(9.5);
TheMatrix.rateTitle(10.0);