結果 : inheritance and its types with example in python