Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions Bus.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
from Vehicle import Vehicle

class Bus(Vehicle):
def __init__(self, brand, model, year, arrival):
super().__init__(brand, model, year)
self.arrival = arrival

def display_info(self):
return f"Bus: {self._brand} {self._model}, Max load: {self.max_load} tons({self._year})"

def honk(self):
return "Honk honk!"

def display_Arrival(self):
return "Arrival time."
3 changes: 3 additions & 0 deletions Motorcycle.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ def display_info(self):
def honk(self):
"""Specific implementation for a motorcycle."""
return "Meep meep!"

def fuel_up(self):
return "Fill until full"