SprytnyTraktor/plant.py

12 lines
315 B
Python
Raw Normal View History

2021-03-21 12:40:13 +01:00
class Plant:
2021-03-27 21:31:22 +01:00
def __init__(self, name, state):
self.name = name
self.state = state
2021-03-27 21:31:22 +01:00
def get_name(self):
return self.name
def set_name(self, name):
self.name = name
def get_state(self):
return self.state
def set_state(self, state):
self.state = state