K1Lesson 29 of 49about 240 minutes
Module 1.4 · Object orientation
Encapsulation and rules
What you learn in this lesson
- decide with private and public what is visible from the outside
- check rules in the constructor and in methods so that no object ends up in a wrong state
- have a property checked with the keyword field from C# 14
- build immutable objects that return new objects instead of changing themselves
- put the rule “end after start” into the Kladde’s model and test it
This lesson belongs to course K1
You will see this lesson's text and video once you have bought the course. The goals above show what you learn here.
€149.00
incl. VAT, one-time payment
Access to all of the course's lessons with their exercises, solutions and videos on this site, for 24 months from the purchase. A self-study course: no tutoring, no exams or grading by us, and no certificate.
Sign in and buy