Skip to content

Commit aa1e92c

Browse files
committed
Restoring bit on properties and exceptions.
1 parent 9d15cd7 commit aa1e92c

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

source/lectures/oop/properties.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,6 @@ The benefit of this notation is that read-only properties can easily be integrat
259259
+ «get» Radius : decimal
260260
```
261261

262-
<!--
263-
264262
## Properties and Security
265263

266264
*The following discussion is related to the general topic of [`try-catch-finally` scope](../misc/exceptions#scoping-in-try-catch-finally-statements) but can be read independently.*
@@ -294,9 +292,3 @@ Where the last line indicate that the attribute *was set to `"Forbidden word"`!*
294292

295293
The correct fix is to **first test, then set**, so that an incorrect value would **never be assigned**.
296294
In the previous example, simply moving `sensibleData = value;` to the end of the `set` would fix this issue.
297-
298-
299-
300-
```{download="./code/projects/PropertySafety"}
301-
```
302-
-->

0 commit comments

Comments
 (0)