First, use baseclass‘s name to call __init__()
I wrote code like this:
and we can use ‘super‘ too.
python:how does subclass call baseclass's __init__()
时间: 2024-12-24 07:02:40
First, use baseclass‘s name to call __init__()
I wrote code like this:
and we can use ‘super‘ too.
python:how does subclass call baseclass's __init__()