Challenge: Add Enumerations
Test your understanding of enumerations by working through this challenge.
We'll cover the following
Problem statement
In addition to correcting issues that arise in the validation application, you’ll also have to do the following:
-
Define enumeration data types with the help of the
Enumeration
meta-class. Also, define any enumeration attributes together with astatic
check function and implicit get and set methods in the model code. -
Add suitable choice widgets for the enumeration attributes in the “Create” and “Update” use cases in the view code.
The application deals with just one object type, Movie
, and with the two enumerations depicted in the following class diagram:
Get hands-on with 1400+ tech skills courses.