Get started with classes and objects in C#
Learn how to create classes and instantiate objects that expose public data fields by using class definitions, constructors, and the 'new' operator.
Learning objectives
After completing this module, you'll be able to:
Describe the .NET type system, the difference between value and reference types, and the benefit of using custom class types.
Explain the difference between a class and an instantiated object.
Create class definitions that include public data fields and constructors that accept zero or more arguments.
Create classes and instantiate objects that expose public field values.
Prerequisites
An installation of Visual Studio Code with the C# Dev Kit extension installed.
The ability to develop C# console apps that implement business logic using iteration statements, selection statements, and custom methods.
The ability to perform basic C# code debugging and exception handling in a Visual Studio Code environment.