Start på pass 2

This commit is contained in:
2018-03-15 14:52:03 +01:00
parent ad6bc8642e
commit c39eae4ef4
6 changed files with 96 additions and 0 deletions

12
Pass2/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())