Concept Flow - Properties with val and var
Declare property with val
Property is read-only
Try to reassign?
Yes→Error: Cannot reassign val
No
Declare property with var
Property is mutable
Reassign allowed
Use property value
This flow shows how val creates read-only properties and var creates mutable properties that can be reassigned.