有如下Python程序:上述代码描述了面向对象的哪个特征?( )
class Car():
def __init__(self,name,color):
self.name=name
self.color=color
def run(self):
print(self.color+self.name+'is running')
class Bus(Car):
def __init__(self,name,color):
super().__init__(name,color)
car1=Bus('公交车','红色')
car1.run()
正在加载题目数据…
子题
该题型需在试卷/作业中作答,单题练习暂不支持
答案解析