26 lines
422 B
Python
26 lines
422 B
Python
from abc import ABC, abstractmethod, abstractproperty
|
|
|
|
class AbstractVehicle(ABC):
|
|
|
|
@abstractmethod
|
|
@property
|
|
def throttle(self):
|
|
pass
|
|
|
|
@abstractmethod
|
|
@throttle.setter
|
|
def throttle(self):
|
|
pass
|
|
|
|
@abstractmethod
|
|
@property
|
|
def steering(self):
|
|
pass
|
|
|
|
@abstractmethod
|
|
@steering.setter
|
|
def throttle(self):
|
|
pass
|
|
|
|
def stop(self):
|
|
pass |