From 9dac0885e0e19ecd5d3eb5a1c85caac4a2bc6ff8 Mon Sep 17 00:00:00 2001 From: Bukola Famurewa Date: Mon, 25 Nov 2024 19:09:56 -0500 Subject: [PATCH 1/2] Your commit message here --- Car.py | 1 + Vehicle.py | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/Car.py b/Car.py index 9741b1f..67feb4e 100644 --- a/Car.py +++ b/Car.py @@ -12,3 +12,4 @@ def display_info(self): def honk(self): """Specific implementation for a car.""" return "Honk honk!" + diff --git a/Vehicle.py b/Vehicle.py index 1941f6b..d9d967d 100644 --- a/Vehicle.py +++ b/Vehicle.py @@ -14,3 +14,20 @@ def honk(self): def fuel_up(self): return "Full tank" + +class Plane(Vehicle): + def __init__(self, brand, model, year, engine_type): + super().__init__(brand, model, year) + self._engine_type = engine_type + + def display_info(self): + base_info = super().display_info() + return f"{base_info} - {self._engine_type} engine" + + def honk(self): + return "Whoooosh!" + +#Testing the code +my_plane = Plane("Boeing", "747", 2019, "Jet") +print(my_plane.display_info()) +print(my_plane.honk()) From c4f9796b9076f0f69242fc6dfa53607e1c3d8cf6 Mon Sep 17 00:00:00 2001 From: Bukkimarh <160818212+Bukkimarh@users.noreply.github.com> Date: Tue, 28 Apr 2026 19:13:23 -0400 Subject: [PATCH 2/2] Create extract_new_taxi --- extract_new_taxi | 1 + 1 file changed, 1 insertion(+) create mode 100644 extract_new_taxi diff --git a/extract_new_taxi b/extract_new_taxi new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/extract_new_taxi @@ -0,0 +1 @@ +