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]
3 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]3 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
What is the hardest sport<br>a. wrestling <br>b.football<br>c.soccer<br>d.lacrosse ​
Anna007 [38]

Answer:

lacross

Explanation:

the hand eye corrdinatin is really hard

8 0
3 years ago
Read 2 more answers
According to the feedback loop, what does high blood sugar promote.
nekit [7.7K]
High blood sugar promotes insulin release
6 0
2 years ago
Which of these is one of the main priorities of the National Prevention Strategy?
Anit [1.1K]

Answer:

C.

participating in some physical activity regularly

Explanation:

6 0
3 years ago
The interior of a cell membrane is ____________
Lady_Fox [76]

Answer:

Hydrophobic.

Explanation:

The plasma membrane or cell membrane is made of the lipid bilayer and the proteins are embedded in the this layer. Carbohydrates are also exposed to the cell surface in association with proteins and lipids.

The interior of the cell membrane is hydrophobic due to the arrangement of the lipid bilayer. The hydrophobic part of the lipid membrane are associated with each other that makes the interior of the cell membrane hydrophobic and small molecules easily diffuse through the membrane.

Thus, the correct answer is option (c).

5 0
3 years ago
I was trying to dye a barbies hair so i blew a bunch of ink from a crayola marker into a small bowl of water. I didnt notice a s
bija089 [108]

Answer:tell an adult,go to the hospital but make sure you disinfect the wound if you can

Explanation:

7 0
3 years ago
Read 2 more answers
Other questions:
  • What is the connection between anatomy and physiology and coding and billing?
    10·1 answer
  • 4. The protein that helps protect the skin and underlying tissue is
    6·2 answers
  • What motion is produced when the calf muscles contract
    12·1 answer
  • Why do emulsions require an emulsifying agent? How does it work?
    8·1 answer
  • A patient has hepatomegaly, bronze-colored skin, and cardiac dysrhythmias. What condition does the healthcare professional prepa
    5·1 answer
  • How do the arteries of the pulmonary circulation differ.
    8·1 answer
  • When taking medication, you should always __________.
    11·2 answers
  • Traditional Chinese medicine hypothesizes that qi is a force that is essential to health and that acupuncture and qi gong improv
    5·1 answer
  • jessica is 16, single, and a mother of a 3-month-old baby girl. she has been provided weekly visits by a nurse who comes to her
    5·1 answer
  • he nurse is reviewing a urinalysis laboratory report of a client. the nurse notes there are nitrates and white blood cells prese
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!