13 lines
282 B
Python
13 lines
282 B
Python
|
class TractorTrailer:
|
||
|
def __init__(self, __load):
|
||
|
self.__load = __load
|
||
|
|
||
|
@property
|
||
|
def load(self):
|
||
|
return self.__load
|
||
|
|
||
|
@load.setter
|
||
|
def load(self, load):
|
||
|
if self.__load is "Fertilizer" or "Seeds" or "Water":
|
||
|
self.__load = load
|