Skip to content

Commit e28e726

Browse files
committed
Fixed line spacing issue
1 parent 7dcc56b commit e28e726

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Notes/05_Object_model/02_Classes_encapsulation.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,9 @@ One approach: introduce accessor methods.
9494
```python
9595
class Stock:
9696
def __init__(self, name, shares, price):
97-
self.name = name self.set_shares(shares) self.price = price
97+
self.name = name
98+
self.set_shares(shares)
99+
self.price = price
98100

99101
# Function that layers the "get" operation
100102
def get_shares(self):

0 commit comments

Comments
 (0)