class Vehicle:
def __init__(self, name):
self.__name = name
self.speed = 1.0
@property
def name(self):
return self.__name
def move(self, distance):
print("Moving")
return distance / self.speed
def describe(self):
return ""
class Vehicle:
def __init__(self, name):
self.__name = name
self.speed = 1.0
@property
def name(self):
return self.__name
def move(self, distance):
print("Moving")
return distance / self.speed
def describe(self):
return ""
class Vehicle:
def __init__(self, name):
self.__name = name
self._speed = 1.0
@property
def name(self):
return self.__name
def move(self, distance):
print("Moving")
return distance / self.speed
def describe(self):
return ""
class Vehicle:
def __init__(self, name):
self.__name = name
self._speed = 1.0
@property
def name(self):
return self.__name
def move(self, distance):
print("Moving")
return distance / self.speed
def describe(self):
return ""
from abc import ABC, abstractmethod
class Vehicle:
def __init__(self, name):
self.__name = name
self._speed = 1.0
@property
def name(self):
return self.__name
def move(self, distance):
print("Moving")
return distance / self.speed
def describe(self):
return ""
from abc import ABC, abstractmethod
class Vehicle(ABC):
def __init__(self, name):
self.__name = name
self._speed = 1.0
@property
def name(self):
return self.__name
def move(self, distance):
print("Moving")
return distance / self.speed
def describe(self):
return ""
from abc import ABC, abstractmethod
class Vehicle(ABC):
def __init__(self, name):
self.__name = name
self._speed = 1.0
@property
def name(self):
return self.__name
def move(self, distance):
print("Moving")
return distance / self.speed
@abstractmethod
def describe(self):
return ""
from abc import ABC, abstractmethod
class Vehicle(ABC):
def __init__(self, name):
self.__name = name
self._speed = 1.0
@property
def name(self):
return self.__name
def move(self, distance):
print("Moving")
return distance / self.speed
@abstractmethod
def describe(self):
return ""