Skip to content

Commit 7bfdda0

Browse files
committed
Fixed anchor link
1 parent fe144ec commit 7bfdda0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

20-object-oriented-programming.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ In this video, you learned about object-oriented programming along with the help
77
**Programs in the Video**
88

99
- [Python Classes and Objects](#python-classes-and-objects)
10-
- [The `__init__()` Method](#the-init-method)
10+
- [The `__init__()` Method](#the-__init__-method)
1111
- [Example: Add Two Complex Numbers](#example-add-two-complex-numbers)
1212
- [Why object-oriented programming?](#why-object-oriented-programming)
1313
- [**Task**: Perimeter of Triangle](#programming-task)
@@ -148,7 +148,7 @@ Harry
148148
```
149149

150150
When we create an object, this `__init__()` method is automatically called. We have used `Harry` and `85` during object creation,
151-
these values are passed to `name` and `marks` in the `init()` method.
151+
these values are passed to `name` and `marks` in the `__init()__` method.
152152

153153
Remember, the first parameter `self` represents the object calling it, while the second and third parameter take the two arguments which we used during object creation.
154154

0 commit comments

Comments
 (0)