1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
VashaNatasha [74]
2 years ago
8

Design and implement your own simple class to represent any household item of your choice (toaster, fan, hair dryer, piano ...)

Your class should have a constructor, one additional method and at least one member variable (e.g. boolean isOn to turn the item on or off). Be sure you demonstrate your class works properly by constructing an instance of it and calling your method.
Medicine
1 answer:
jeyben [28]2 years ago
7 0

Answer:

public class Fan {

/** Main method */

public static void main(String[] args) {

 final int SLOW = 1;  // Fan speed slow

 final int MEDIUM = 2; // Fan speed medium

 final int FAST = 3;  // Fan speed fast

 // Create two Fan objects

 Fan fan1 = new Fan();

 Fan fan2 = new Fan();

 

 fan1.setSpeed(FAST);

 fan1.setRadius(10);

 fan1.setColor("yellow");

 fan1.turnOn();

 

 fan2.setSpeed(MEDIUM);

 fan2.setRadius(5);

 fan2.setColor("blue");

 fan2.turnOff();

 System.out.println(fan1.toString());

 System.out.println(fan2.toString());

}

}

You might be interested in
Based on your reading the following, where will casualties are a gas explosion first be sent?
GarryVolchara [31]

Answer:

3( search and rescues triage trailer

Explanation

I say this because you need to start triage as soon as possible and you need patients for triage so search and rescue comes into that

4 0
2 years ago
QUESTION 12 OF 16
Anton [14]

Answer:

4.

Explanation:

its something staff members should not tolorate,i think,my answer could be wrong

5 0
2 years ago
If the image of an object on one retina is exactly the same as the image of that object on your other retina (i.e. if you open a
expeople1 [14]

What your brain says about the object's distance is Nothing - this is a visual pattern recognition test, not distance. The size of the object and the distance it is from the observer determine the size of the image that forms on the retina.

  • Nothing - this is a visual pattern recognition test, not distance.

<h3>How does the image arrive on the retina?</h3>

After the pupil, the image reaches the lens and is focused on the retina. The eye's lens produces an inverted image, and the brain converts it to the correct position. In the retina, more than one hundred million photoreceptor cells transform light waves into electrochemical impulses, which are decoded by the brain.

With this information, we can conclude that The size of the object and the distance it is from the observer determine the size of the image that forms on the retina.

Learn more about retina in brainly.com/question/13993307

#SPJ1

3 0
1 year ago
You find your 2 year old brother in the bathroom. An empty bottle of aspirin tablets is on the floor. His mouth is covered with
Aleonysh [2.5K]

Answer:

Call 911

Explanation:

3 0
2 years ago
Read 2 more answers
Select all that apply.
7nadin3 [17]
The answer to this would be. Depression!!!
7 0
3 years ago
Other questions:
  • The nurse makes the statement that if an older child inhales a foreign body, the inhaled object is more likely to be drawn into
    5·1 answer
  • how do you stop infetion as well as blood infection and what are the signs that you have them? i will give briliantist
    6·1 answer
  • Which method of family planning do you like?Why?​
    5·2 answers
  • Drag each tile to the correct box to complete the pairs.
    11·1 answer
  • Consider the following scenarios. Which person needs to appoint a financial power of attorney? Patricia has severe arthritis. He
    11·1 answer
  • Match the steps to the answers that correspond with that step in the pathway of blood flow through the heart.
    12·2 answers
  • Explaining Certification
    9·2 answers
  • Outline four differences between type 1 and type 2 diabetes mellitus
    12·1 answer
  • How long is the antibiotic azithromycin in your system after last dose?.
    8·2 answers
  • A heat illness characterized by excessive sweating, cool skin, nausea, and weakness is called _____.
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!