From b222fc08938c5f48c1048335586fb5fd7f6b13b5 Mon Sep 17 00:00:00 2001 From: bytesparallel Date: Wed, 29 Jun 2022 16:03:36 -0500 Subject: [PATCH] got both classes working --- fleet.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/fleet.py b/fleet.py index 3d1259e..c900218 100644 --- a/fleet.py +++ b/fleet.py @@ -28,13 +28,7 @@ addVehicle = Fleet("hovercraft", 50, "ground/water", 0) vehicle1.displayAllFleetMembers() -class GroundVehicle(ABC, Vehicle): - - @abstractmethod - def __init__(self, volume): - # default value set to true. Many ground vehicles will have trailers or train cars. Modified as needed - self.isModular = True class Vehicle(ABC): '''Defines the properties of vehicles''' @@ -49,3 +43,11 @@ class Vehicle(ABC): self.weightType = "kg" self.weight = 0 +class GroundVehicle(Vehicle): + + + @abstractmethod + def __init__(self, volume): + # default value set to true. Many ground vehicles will have trailers or train cars. Modified as needed + self.isModular = True +