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
The physician orders gr 10 of Tylenol suppository PR Q6H for a patient who will be transferred back to an assisted living facili
Vlada [557]

Answer:

2 just trying

Explanation:

I think so but not sure

5 0
4 years ago
What is the acronym for a certified athletic trainer
Flauer [41]

Answer:

Explanation:

Use AT as the abbreviation for athletic trainer. Use ATC only when referring to the credential. Do not use ATC/L, ATC/R, LATC or any other combination of ATC, as the credential is trademarked. NATA does not use the term “certified athletic trainers” unless the circumstance requires distinction.

7 0
3 years ago
State the risk factors for Graves disease and why
aleksandr82 [10.1K]

Answer:

Risk factors

Family history. Because a family history of Graves' disease is a known risk factor, there is likely a gene or genes that can make a person more susceptible to the disorder.

Sex. ...

Age. ...

Other autoimmune disorders. ...

Emotional or physical stress. ...

Pregnancy. ...

Smoking.

3 0
3 years ago
Cultural universals are
eimsori [14]

Answer: B, good luck :)

8 0
4 years ago
Read 2 more answers
The flowchart lists basic components of matter.
Oksanka [162]

Answer:electron,atoms,molecules

Explanation:

7 0
3 years ago
Other questions:
  • Jamal wants to know if a new drug will increase reaction times for drivers. In his study, the use of a group that does not take
    7·1 answer
  • For muscle contraction to occur, the neurotransmitter acetylcholine is released from the pre-synaptic neuron bulb (knob) to cros
    11·2 answers
  • Explain the germ theory of disease and discuss why this theory is essential to the treatment of infectious disease.
    11·1 answer
  • The glands of the uterus produce glycoprotins
    15·1 answer
  • Azithromycin is in the same therapeutic classification as which of the following
    9·1 answer
  • Describe an actual case study where lead poison was used or involved. Tell us a true story in your own words.
    9·1 answer
  • Which of these is an advantage of a CT scan over an MRI
    5·1 answer
  • Which nursing action is a priority for a client with a spinal cord injury who has developed sudden autonomic dysreflexia
    10·1 answer
  • Nursing observations are essential for identifying patients at nutritional risk. the correct method to use when recording intake
    15·1 answer
  • a patient is receiving a continuous tube feeding. the nurse notes that the feeding tube was last irrigated at 2 p.m. the nurse w
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!