Movie - */ public Movie(String title, String category) { }...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
import java.io.*; import java.util.Scanner; /* A Movie is just what you would expect. * * Your implementation needs to store both the title, and the category for the * movie. */ public class Movie { private String m_title; private String m_category; /* Create a new movie class. * * @param title The title of the movie. * @param category The category of the movie.
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: */ public Movie(String title, String category) { } /* Enable usage of the Movie class everywhere a String is usable. */ @Override public String toString() { } /* Get the title of the movie. */ public String getTitle() { } /* Get the category of the movie. */ public String getCategory() { } }...
View Full Document

Ask a homework question - tutors are online