Skip to main content

Adding Properties

We now have a Film class but it's empty. If you recall, we want to define four properties: Title, TicketsSold, Description, and PlayingNow. (Remember that properties define the data stored by a class.)

generated description: addingproperty 20152

We begin by pulling down the Class menu, clicking on the Add submenu, and invoking the Property command.

FeedbackOpens in a new tab