Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 596d360

Browse files
author
sina hosseinizad
committed
fix indentation error
1 parent f93493b commit 596d360

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Notes/05_Object_model/02_Classes_encapsulation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ One approach: introduce accessor methods.
9595
class Stock:
9696
def __init__(self, name, shares, price):
9797
self.name = name
98-
self.set_shares(shares)
99-
self.price = price
98+
self.set_shares(shares)
99+
self.price = price
100100

101101
# Function that layers the "get" operation
102102
def get_shares(self):

0 commit comments

Comments
 (0)