mirror of
https://github.com/Open-Argon/argon-v3.git
synced 2025-12-06 08:56:07 +00:00
21 lines
324 B
Python
21 lines
324 B
Python
class obj1:
|
|
def __init__(self) -> None:
|
|
pass
|
|
|
|
def __add__(self, other):
|
|
print("obj1")
|
|
return 10
|
|
|
|
class obj2:
|
|
def __init__(self) -> None:
|
|
pass
|
|
|
|
def __add__(self, other):
|
|
print("obj2")
|
|
return 20
|
|
|
|
obj1 = obj1()
|
|
obj2 = obj2()
|
|
|
|
print(obj1 + obj2)
|
|
print(obj2 + obj1) |