SprytnyTraktor/plant.py
Tomasz Adamczyk 9ab7b66267 nawóz
2021-03-27 21:31:22 +01:00

12 lines
315 B
Python

class Plant:
def __init__(self, name, state):
self.name = name
self.state = state
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