From the course: Object-Oriented Programming with C#
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Take action - C# Tutorial
From the course: Object-Oriented Programming with C#
Take action
- (Instructor) Now that we've populated our rooms with items it's time for us to go and create a new action to take the items out of the room. Before we do that, let's add a few properties to our language and English classes. We'll need a take, take error, not taken, took description, and can't take description. Now inside of our English class we can set all the values for these properties. We'll set the take property to a string take. The take error property to a string that says there is nothing to take. The not taken property to you can't take that. We'll set the took description to you took a, with a token. And the can't take description to you can't take the, with a token. Now I noticed that I had a misspelling with my took description property. Let's go ahead and double click on our property and go to rename and fix the typo. If we go back into our language class you'll see that the typo has also been corrected…