Question: IN JAVA Create a class named Fan. Your Fan class must contain: A private String data field named speed to specify the speed of the

IN JAVA IN JAVA Create a class named Fan. Your Fan class must contain:

Create a class named Fan. Your Fan class must contain: A private String data field named speed to specify the speed of the fan. The default is slow. A private double data field named radius to specify the radius of the fan. The default is 4. A private Boolean data field named ison that specifies whether the fan is on. The default is false. A string data field named color that specifies the color of the fan. The default is green. The accessors(getters) and mutator(setters) methods for all four data fields. Ano-arg constructor that creates a default fan

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!