Be on schedule. Score better.


Solved! Get answer or ask a different Question 1490

construct a class called Toothbrush in JAVA , representing an electric toothbrush, with attributes being the brand, the color (using Color class), and the softness – hard, medium, soft. Methods required include a default constructor with no arguments, a constructor with all arguments, all getter and setter methods, and a toString method. There is also a brushTeeth method which uses a random generator to determine how many seconds of brushing there will be, between 100 and 1000. then write a TestToothbrush program to create 3 objects of type Toothbrush and to test all getter methods, toString method, and brushTeeth method in the Toothbrush object.

Looking for a Similar Assignment? Our ENL Writers can help. Use the coupon code FIRST15 to get your first order at 15% off!
Students Love Us

Hi there! Click one of our representatives below and we will get back to you as soon as possible.

Chat with us on WhatsApp