Guest User

Untitled

a guest
Jul 20th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. Paste this line into the initialize method, with the other instance variables.
  2.  
  3. @category = String.new
  4.  
  5. paste these two methods outside of the initialize method.
  6.  
  7. # ... Method to set value of @category
  8. def setCategory (category)
  9. @category = category
  10. end
  11. # ... Method to read value of @category
  12. def getCategory
  13. @category
  14. end
Add Comment
Please, Sign In to add comment