Skip to main content

This version of the product is no longer supported, and this documentation is no longer updated regularly. See the latest version of this content.Opens in a new tab

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