Skip to content

Commit 196e85a

Browse files
committed
Using the object's methods
1 parent 7622112 commit 196e85a

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

method.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/python3.1
2+
# Filename : method.py
3+
4+
class Person:
5+
def sayHi(self):
6+
print('Hello, how are you?')
7+
8+
p = Person()
9+
p.sayHi()

0 commit comments

Comments
 (0)