MCPcopy Index your code
hub / github.com/LinkedInLearning/learning-python-2896241 / drive

Method drive

Ch2 - Basics/classes_finished.py:22–24  ·  view source on GitHub ↗
(self, speed)

Source from the content-addressed store, hash-verified

20 self.engine = enginetype
21
22 def drive(self, speed):
23 super().drive(speed)
24 print("Driving my", self.engine, "Car at ", self.speed)
25
26
27class Motorcycle(Vehicle):

Callers 2

driveMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected