Now I have class like this:
id_A = 'A'
id_B = 'B'
id_C = 'C'
class A:
def get_id(self):
# The expected output: id_A
return id_A
class B(A):
...
...
def __init__(self):
pass
class C(A):
...
...
def __init__(self):
pass
How to use inheritance to enable B and C to output id_ B,id_C?
like:
a = A()
b = B()
c = C()
a.get_id (Output should be 'A')
b.get_id (Output should be 'B')
c.get_id (Output should be 'C')
Thanks for any help