Course Solutions Uncategorized (Solved) : Design Class Java Called Fan Represent Fan Fan Class Contains 3 Constants Named Slow Mediu Q27740660 . . . .

(Solved) : Design Class Java Called Fan Represent Fan Fan Class Contains 3 Constants Named Slow Mediu Q27740660 . . . .

 

Design a class in Java called Fan to represent a fan. The Fanclass contains :

 3 constants named SLOW, MEDIUM, FAST with values 1, 2, and 3,to denote the fan speed.

 A private int data field named speed that specifies the speedof the fan (the default is SLOW).

 A private boolean data field named on that specifies whetherthe fan is on (the default is false).

 A private double data field named radius that specifies theradius of the fan (the default is 5).

 A private string data field named color that specifies thecolor of the fan (default is blue)

 Accessor and

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post