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
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
Get step-by-step solutions from verified subject matter experts
