Implement classes, properties, and methods
At a glance
-
Level
-
Skill
-
Product
Learn how to create classes and objects in C# and how to securely access and manage encapsulated data using class properties and methods.
Prerequisites
- Access to a Visual Studio Code environment that's configured with the C# Dev Kit extension.
- 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.
Achievement Code
Would you like to request an achievement code?
Modules in this learning path
Learn how to create classes and instantiate objects that expose public data fields by using class definitions, constructors, and the new operator.
Learn how to implement read-write, read-only, and write-only class properties using property accessors and access modifiers, and how to implement methods and extension methods for a class.
Learn how to implement classes using specialized techniques like static classes, partial classes, and object initializers that can improve the readability, maintainability, and organization of your code.