HouseholdItem Solution
(Not rated)
(Not rated)
Design and implement your own simple class to represent any household item of your choice (toaster, fan, hair dryer, piano ...) Your class should have a constructor, one additional method and at least one member variable (e.g. boolean isOn to turn the item on or off). Be sure you demonstrate your class works properly by constructing an instance of it and calling your method. Hint: check out the week 6 module readings under "additional readings". The guitar example is a good model for this.
11 years ago
Complete A++ Solution
NOT RATED
Purchase the answer to view it
- householditem.zip