saving after resolving methods order problem

This commit is contained in:
2022-06-29 15:27:51 -05:00
parent 7c02be3061
commit b377951c78
+8 -5
View File
@@ -28,6 +28,14 @@ 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'''
@@ -41,8 +49,3 @@ class Vehicle(ABC):
self.weightType = "kg"
self.weight = 0
class GroundVehicle:(ABC, Vehicle)
'''Doc string goes here'''
# @abstractmethod
# def __init__(self):