Advertisement
TonyMo

item.py

Mar 14th, 2021
707
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.34 KB | None | 0 0
  1. class Item():
  2.  
  3.   def __init__(self):
  4.     self.name = None
  5.     self.description = None
  6.  
  7.   def get_name(self):
  8.     return self.name
  9.  
  10.   def set_name(self, item_name):
  11.     self.name = item_name
  12.  
  13.   def get_description(self):
  14.     return self.description
  15.  
  16.   def set_description(self, item_description):
  17.     self.description = item_description
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement