Advertisement
Guest User

DataModel

a guest
Jul 21st, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. String name;
  2. String classification;
  3. String region;
  4. String size;
  5. String weight;
  6.  
  7. // TODO: Add parameters to your data model!
  8. public DataModel(String name) {
  9. // TODO: Assign the different attributes to the matching parameter! The first one is done for you.
  10. this.name=name;
  11.  
  12. }
  13.  
  14.  
  15. public String getName() {
  16. /**
  17. * Returns the name of the item.
  18. */
  19. return name;
  20. }
  21.  
  22. public String getClassification() {
  23. // TODO: Return classification
  24. }
  25.  
  26. public String getRegion() {
  27. // TODO: Return region
  28. }
  29.  
  30. // TODO: Write more functions for other parameters.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement