summary refs log tree commit diff stats
path: root/test/stuff/test5.py
blob: 682a716f84458fc41fe1c96e3629db0060abc50e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
class A:
	def foo(self, x):
		y = x + 1
		print(y)
		return y

	@staticmethod
	def zar():
		print("l o l")

class B(A):
	def bar(self, x):
		y = self.foo(x) + 3
		print(y)
		return y

class C():
	def foo(self, x):
		y = x - 1
		print(y)
		return y

a = C()
A.foo(a, 5)

B.zar()