Skip to content

Commit e4a27c7

Browse files
authored
Merge pull request #55 from ipreacher/ipreacher-patch-2
Update oop.md
2 parents 1910ee0 + 1852c7c commit e4a27c7

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
@@ -46,7 +46,7 @@ Output:
4646

4747
We create a new class using the `class` statement and the name of the class. This is followed by an indented block of statements which form the body of the class. In this case, we have an empty block which is indicated using the `pass` statement.
4848

49-
Next, we create an object/instance of this class using the name of the class followed by a pair of parentheses. (We will learn <<init,more about instantiation>> in the next section). For our verification, we confirm the type of the variable by simply printing it. It tells us that we have an instance of the `Person` class in the `__main__` module.
49+
Next, we create an object/instance of this class using the name of the class followed by a pair of parentheses. (We will learn <<init, more about instantiation>> in the next section). For our verification, we confirm the type of the variable by simply printing it. It tells us that we have an instance of the `Person` class in the `__main__` module.
5050

5151
Notice that the address of the computer memory where your object is stored is also printed. The address will have a different value on your computer since Python can store the object wherever it finds space.
5252

0 commit comments

Comments
 (0)