Skip to main content

Using Our Data Type

generated description: usingdatatype 20111

Once we have created (and compiled) our Duration class, we can return to the Film class and add a new property named Length (again using the Add New Property wizard within the Class menu). It's datatype is Cinema.DurationOpens in a new tab, the class we just created. We simply select it from the Type list, just as we would a built-in data type.

FeedbackOpens in a new tab