MCPcopy Create free account
hub / github.com/LinkedInLearning/learning-python-2896241 / __init__

Method __init__

Ch2 - Basics/classes_finished.py:16–20  ·  view source on GitHub ↗
(self, enginetype)

Source from the content-addressed store, hash-verified

14
15class Car(Vehicle):
16 def __init__(self, enginetype):
17 super().__init__("Car")
18 self.wheels = 4
19 self.doors = 4
20 self.engine = enginetype
21
22 def drive(self, speed):
23 super().drive(speed)

Callers 1

__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected