formations/algo/poo/cours/snippets/aggregation.py
2019-03-25 13:14:17 +01:00

9 lines
56 B
Python

class A:
pass
class B:
pass
a = A()
a.b = B()