Validation and Setters (C#)
OOPA-levelLesson packSubscription
About this resource
Learn how to enforce rules on data using validation in constructors and setter methods in C#, including the delegation pattern and using constants.
11 slides.
Lesson outline
- Validation — Where Does it Go?
- Constants in C#
- Setter Methods in C#
- The Delegation Pattern
- Thermostat in C#: Full Demo
- UML: Thermostat
- Clamping or Rejection?
- Coding Practice: Thermostat + PasswordVault
- Lesson Summary
Unit bundleUnit 2B · Validation and Setters


