Learn C# basics, including variables, strings, operations, classes, and methods, as well as the object-oriented features of this versatile programming language.
Overview
Syllabus
Introduction
- Welcome
- What you should know
- Using the exercise files
- The history of C#
- C#, the .NET Framework, and runtime
- Installing Visual Studio
- Creating a console application
- Understanding C# syntax
- Declaring variables
- Using built-in data types
- Everything is an object
- Working with strings
- Building strings with StringBuilder
- String formatters
- Parsing strings as numbers
- Using mathematical operations
- Working with constants and enumerators
- Working with dates and times
- Creating a class
- Namespaces
- Auto-properties
- Creating properties
- Encapsulation with access modifiers
- Constructors
- Creating methods
- Function bodied expressions
- Static methods
- Overriding ToString
- Using the school class in a forms app
- Creating a user interface
- Accessing the school class
- Working with user input
- Testing ToString
- Extending a class to create a new class
- Working with subclassed objects
- Abstract methods
- Testing the abstract method
- Virtual methods
- Overriding virtual methods in subclasses
- Preparing for interfaces
- Adding an interface
- Passing interfaces like types
- Extension methods
- Next steps
Taught by
Bruce Van Horn