Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String name;
- String classification;
- String region;
- String size;
- String weight;
- // TODO: Add parameters to your data model!
- public DataModel(String name) {
- // TODO: Assign the different attributes to the matching parameter! The first one is done for you.
- this.name=name;
- }
- public String getName() {
- /**
- * Returns the name of the item.
- */
- return name;
- }
- public String getClassification() {
- // TODO: Return classification
- }
- public String getRegion() {
- // TODO: Return region
- }
- // TODO: Write more functions for other parameters.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement