Skip to main content

Enhancing the Film Class

In Part 1, we created a Film class with four properties, Title, Description, TicketsSold, and PlayingNow. Now, we are going to enhance Film with three additional properties, that enable us to see some of the power of Caché:

  • A Rating property, which indicates the intended audience.

  • A Length property, which indicates the length (in minutes) of the film.

  • A Category property, which indicates what sort of movie it is, such as “Drama” or “Thriller”.

Let's begin with Rating...

FeedbackOpens in a new tab