diff --git a/fleet.py b/fleet.py index 5c6bb94..c785033 100644 --- a/fleet.py +++ b/fleet.py @@ -89,7 +89,10 @@ class semi_Truck(GroundVehicle): self.noOfTrailersAttached = _noOfTrailersAttached def displayNoOfTrailersAttached(self): print(self.noOfTrailersAttached) + def travel(self): + print("Currently unloading") Semi_Truck1 = semi_Truck(f"This truck has {2} trailers attached.") -semi_Truck.displayNoOfTrailersAttached() \ No newline at end of file +# Remember to be careful to check that you are running the method on an instance of the class, not on the class definition. +Semi_Truck1.displayNoOfTrailersAttached() \ No newline at end of file