From 73e7c007b84a5130ce2a19b7dda3225efd692308 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mert=20G=C3=B6r?= Date: Tue, 27 Jun 2023 17:54:30 +0300 Subject: [PATCH] aggregation 1 --- python-temel/aggregation.py | 15 +++++++++++++++ python-temel/aggregation.py~ | 13 +++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 python-temel/aggregation.py create mode 100644 python-temel/aggregation.py~ diff --git a/python-temel/aggregation.py b/python-temel/aggregation.py new file mode 100644 index 0000000..9a9a8d3 --- /dev/null +++ b/python-temel/aggregation.py @@ -0,0 +1,15 @@ +class A: + pass + +class B: + def __init__(self, a = None): + self.a = a + pass + + def seta(self, a): + self.a = a + +a = A() +#print(a) +b1 = B() +#print(b1) diff --git a/python-temel/aggregation.py~ b/python-temel/aggregation.py~ new file mode 100644 index 0000000..5804ed6 --- /dev/null +++ b/python-temel/aggregation.py~ @@ -0,0 +1,13 @@ +class A: + pass + +class B: + def __init__(self, a = None): + self.a = a + pass + + def seta(self, a): + self.a = a + +a = A() +b1 = B()