Answer:
class fan{
private String model;
private boolean isOn;
//Constructor goes here
public fan(String model, boolean isOn) {
this.model = model;
this.isOn = isOn;
}
// An additional method goes here
public boolean turnOn(boolean yes){
if(yes) {
this.isOn=true;
System.out.println("Fan is blowing");
return true;
}
else
this.isOn=false;
System.out.println("Fan is off");
return false;
}
}
Explanation:
Demonstrating the working of the class in a main method. Below is a complete code
public class fanTest {
public static void main(String[] args) {
fan fan1 = new fan("Binatone", false);
fan1.turnOn(false);
}
}
class fan{
private String model;
private boolean isOn;
//Constructor goes here
public fan(String model, boolean isOn) {
this.model = model;
this.isOn = isOn;
}
// An additional method goes here
public boolean turnOn(boolean yes){
if(yes) {
this.isOn=true;
System.out.println("Fan is blowing");
return true;
}
else
this.isOn=false;
System.out.println("Fan is off");
return false;
}
}
The model IS a 2017 Ford Mustang. ;)
Answer:
The answer to the following question is the option "b".
Explanation:
In the computer system, Hard disks stand for the hard disk drive. It is also known as a hard disk. It locates inside the computer case. The hard disk drive is used to store an electromechanical data. That uses magnetic storage device that store and retrieve data. So the answer to this question is hard disks.
Answer:
Repetition, and regular rhythm
Explanation:
Its certainly repetition method, and repetition method is of three types which are repetition, pattern and rhythm.
Remember repetition can be boring at times as we need to read same thing again and again. However, repetition sometimes can be good like the one we are referring to, and the other one can be like placing the logo or menu at same place in all web page. And its since it creates a habit in us for reading the web pages, And hence we can understand faster, and it looks please to our eyes hence as well.