mirror of
https://github.com/github/codeql.git
synced 2025-12-24 12:46:34 +01:00
27 lines
533 B
Python
27 lines
533 B
Python
|
|
class Vehicle(object):
|
|
|
|
def __init__(self):
|
|
self.mobile = True
|
|
|
|
class Car(Vehicle):
|
|
|
|
def __init__(self):
|
|
Vehicle.__init__(self)
|
|
self.car_init()
|
|
|
|
#Car.__init__ is missed out.
|
|
class SportsCar(Car, Vehicle):
|
|
|
|
def __init__(self):
|
|
Vehicle.__init__(self)
|
|
self.sports_car_init()
|
|
|
|
#Fix SportsCar by calling Car.__init__
|
|
class FixedSportsCar(Car, Vehicle):
|
|
|
|
def __init__(self):
|
|
Car.__init__(self)
|
|
self.sports_car_init()
|
|
|