Skip to content

Commit 7e387d1

Browse files
authored
Update OOP.md
1 parent be7c909 commit 7e387d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

OOP.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ print(dog.name)
8989

9090
---
9191
#### Answer:
92-
In Python, private attributes are denoted by a single leading underscore. This is a convention indicating that the attribute should not be accessed directly from outside the class, although it can still be accessed if necessary.
92+
In Python, private attributes are denoted by a double leading underscore. This is a convention indicating that the attribute should not be accessed directly from outside the class, although it can still be accessed if necessary.
9393

9494
### Example:
9595
```python

0 commit comments

Comments
 (0)