Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

CS 249 Assign05, x suny.edu/bbcswebdav/pid-415289-dt-conte nt-rid-1398325.1/cour

ID: 3700383 • Letter: C

Question

CS 249 Assign05, x suny.edu/bbcswebdav/pid-415289-dt-conte nt-rid-1398325.1/courses/201801-x16-CS249-CS505/CS 2 3 Implement an Item class It should contain the following PRIVATE data: Page 2 of 9 String name (default " (empty String)) double weight (default: 0) It should have the following PUBLIC methods: Constructor that takes no arguments Constructor that takes name and weight (in that order) Getter method: String get Name() Getter method: double get Weight) String toString) Override toStringf) to return a String witlh the following format 6 7 8 9

Explanation / Answer

// Item.java

// Food.java