Skip to main content

Creating the AddShow Method

Now, we can define the AddShow method.

generated description: addingclassmethod1 20111

First, we invoke the New Method Wizard by clicking Class—>Add—>Method on the menu bar. Then we give the method a namegenerated description: little1.gif and a single argument generated description: little2.gif, which identifies the show for which tickets are being purchased. Note that we do not specify a return type for AddShow as the method does not return any values.

FeedbackOpens in a new tab