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
A) Controls one-directional transmission of impulses​
bearhunter [10]

Answer:

?

Explanation:

3 0
3 years ago
Read 2 more answers
(PLZ HURRY, WILL MAKE YOU BRAINIEST) Nurse Shane was working on his department’s paperwork. His task was interrupted when a doct
kati45 [8]
Reliability or flexibility
5 0
4 years ago
Read 2 more answers
What advice will you give your friend about how to get the claim?
lubasha [3.4K]

Answer:

I would say that to get a claim it needs to be a sentence that is a statement and is debatable. (not a fact like in the book Harry Potter, Harry Potter is seen as the boy who lived)

Explanation:

6 0
3 years ago
What organ controls the heartbeat
yaroslaw [1]
Heart rate is controlled by the two branches of the autonomic nervous system
3 0
4 years ago
Read 2 more answers
A client who had coronary artery bypass surgery is exhibiting signs of heart failure. what medications will the nurse anticipate
Tom [10]

Digoxin, diuretics, and IV inotropic drugs are all included in the medical care for heart failure. Due to systolic dysfunction, amlodipine and calcium channel blockers are not used. Nitroprusside is a vasodilator that is not used for heart failure.

<h3>What is Sodium nitroprusside?</h3>

One drug used to decrease blood pressure is sodium nitroprusside (SNP), which is marketed under the brand names Nitropress and others. This may be done in certain cases of heart failure when the blood pressure is too high and causing symptoms, and after surgery to lessen bleeding. It is administered continuously through a vein. Effects begin almost immediately and might continue for up to ten minutes. It has a history of triggering reflex tachycardia. In critical, urgent situations, it is frequently utilized as the preferred vasodilator. Nitric oxide is released from sodium nitroprusside, activating sodium guanylyl cyclase, which is related to pharmacological activation.

To learn more about Nitroprusside, Visit:

https://brainly.in/question/15416775

#SPJ4

3 0
2 years ago
Other questions:
  • You rush off to eat a piping hot bowl of ramen and accidentally burn the superior portion of your oral cavity. What type of epit
    13·1 answer
  • Which Of The Following Is An Important Component Of Drug Accountability? A) Environmental controls B) Drug shipping and disposit
    7·2 answers
  • What is the variable called tha is changed
    10·1 answer
  • You go to the doctor and he gives you 12 milligrams of radioactive dye. After 20 minutes, 7 milligrams of dye remain in your sys
    5·1 answer
  • Can you get pregnant without sperm
    7·2 answers
  • Uncle Ralph suffers from dysphagia, the inability to voluntarily swallow food ip or water. What part of the brain is likely dama
    13·1 answer
  • What does it mean to have a high TLC level in a blood test?.
    8·1 answer
  • What feature/characteristic of cancer cells do many cancer treatments target?.
    6·2 answers
  • Jasper decides to do some research before purchasing a new lawn mower. Choose the correct way to complete the sentences to expla
    6·1 answer
  • true or false: a person who does not consume adequate calcium intakes, will have less calcium in the blood.
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!