I want to make method overloading with Python as below, how can I do it. I want to overload the method that transforms class A.
class A:
value: int
def __init__(self, value):
self.value=value
variable=A('value:61')
I want to make method overloading with Python as below, how can I do it. I want to overload the method that transforms class A.
class A:
value: int
def __init__(self, value):
self.value=value
variable=A('value:61')