14 lines
172 B
Python
14 lines
172 B
Python
![]() |
class A:
|
||
|
def a(self) -> str:
|
||
|
return "b"
|
||
|
|
||
|
|
||
|
class B(A):
|
||
|
def b(self) -> str:
|
||
|
return "c"
|
||
|
|
||
|
|
||
|
class Inherit(A):
|
||
|
def a(self) -> str:
|
||
|
return "d"
|