Object-Oriented Programming with C#
2h 17mIntermediate2022-12-06
Authors

Jesse Freeman
Head of Partner and Framework Marketing at Amazon
Course details
Did you know you can use object-oriented programming concepts in C# and .NET 6 to help write clean, reusable code? In this course, instructor Jesse Freeman gives you a comprehensive overview of the many features of C# that support object-oriented programming, including abstract classes, interfaces, generic types, command patterns, method overrides, and more. To help lend a real-world context to the concepts, Jesse shows you how to use the features by example as he reexamines existing code and helps you write an interactive text adventure game. Along the way, discover strategies for a wide range of scenarios so you can solve complex problems and streamline your workflow.
Skills covered
Object-Oriented ProgrammingC#Programming LanguagesMicrosoftSoftware DevelopmentOne-Off
Concepts
0. Introduction
- 01 - Programming an object-oriented text adventure game
- 02 - What you should know
1. Using .NET 6
- 03 - Setting up .NET 6
- 04 - Classes
- 05 - Extending a class
2. Scope
- 06 - Scope
- 07 - Singleton
- 08 - Partial classes
3. Command Pattern
- 09 - The room
- 10 - Room movement
- 11 - Actions
- 12 - Execute action
- 13 - Go action
- 14 - Action loop
4. Overriding Methods
- 15 - Creating rooms
- 16 - Calculating neighbors
- 17 - Overriding methods
- 18 - Joining words
- 19 - Decorating rooms
5. Interfaces
- 20 - Items
- 21 - Inventory
- 22 - Using items
- 23 - Interfaces
- 24 - Creating a backpack
- 25 - Creating a chest
6. Interaction
- 26 - Creating a key and gold
- 27 - Populating items
- 28 - Take action
- 29 - Use action
Conclusion
- 30 - Continuing with C#