mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 15:50:53 +07:00
9 lines
189 B
Python
9 lines
189 B
Python
class Additive:
|
|
def __init__(self, value):
|
|
self.value = value
|
|
|
|
def __add__(self, other):
|
|
return Additive(self.value + other.value)
|
|
|
|
|
|
Additive(1) +<caret> Additive(1) |