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
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
What is the best hospice in Houston, Texas?<br><br>Vantage Hospice <br>https://vantagehospice.com/
Klio2033 [76]

Answer:  Houston Hospice

4 0
3 years ago
During an orientation class, the medical unit's nursing educator is presenting education on transcultural nursing to a group of
Olenka [21]

Answer:

The underlying focus of transcultural nursing is to provide culture specific and culture universal care

Explanation:

Transcultural nursing is professional nursing interacts with the concept of culture, based in anthropology and nursing . It also means being sensitive to cultural differences as you focus on individual patients, their needs, and their preferences .

4 0
3 years ago
What is the most common symptoms for Iron Supplements?
ss7ja [257]

Answer:

Among the initial signs of iron poisoning are nausea and abdominal pain. Vomiting blood can also occur. Iron poisoning can also lead to diarrhea and dehydration. Sometimes, too much iron causes stools to turn black and bloody.

Explanation:

can you mark me brainliest

7 0
3 years ago
Read 2 more answers
What is the similarity seen between sprains and strains?
den301095 [7]

Answer:

The symptoms of a sprain and strain are much alike, due to the fact that the injuries are very similar in nature. You may experience swelling, muscle spasm, difficulty with range of motion, limited flexibility, or pain around the affected joint.

Explanation:

hope this helps u!

5 0
3 years ago
Read 2 more answers
Other questions:
  • Write a hardest question about cells and systems.
    10·1 answer
  • · Anesthesia should be used with great caution on a patient with a medical history of:
    8·1 answer
  • What major artery runs down the anterior side of the thigh?
    12·1 answer
  • If a clinic owns its own x-ray equipment, what modifier would be used when coding for the supervision and interpretation of a ca
    5·1 answer
  • Older adults often experience which of the following?
    9·2 answers
  • Where are the male gonads located?
    8·1 answer
  • Pros and cons of vitamin A
    15·1 answer
  • In order from less complex to complex to more complex, which level of organization is directly after tissue?
    7·2 answers
  • Hepatitis A is transmitted most often by
    13·1 answer
  • The patient is having an acute malarial attack with chills and fever. the nurse knows chills and fever are caused by what?
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!