1 OOP Start

This commit is contained in:
2018-03-15 15:08:44 +01:00
parent 03f11b1620
commit 03ee574e99
2 changed files with 0 additions and 0 deletions

12
Pass2/1 OOP basics.py Executable file
View File

@@ -0,0 +1,12 @@
class MyClass:
#My first class
i = 12345
str = "Something"
def myFunc(self):
return 'hello world'
x = MyClass()
print(x.i)
print(x.str)
print(x.myFunc())