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
In making collection telephone calls to a group of accounts, how should the accounts be organized to determine where to begin?
Korvikt [17]

Answer:

a

Explanation:

because it starts saoo

8 0
3 years ago
1. How are psychological disorders classified?
slavikrds [6]
Represent acute symptoms that need curing
3 0
3 years ago
A student is alone when he receives a minor chemical burn how should you treat this trauma​
svp [43]

Explanation:

It depends on the composition of the chemical.

Most chem. burns are from home products. example; bleach, toilet cleaners,pest control such as ant spray, usually treated with clean water.

More serious chemical burns that need medical attention are from factories that produce such chemicals.., like proctor & gamble,..etc....

4 0
3 years ago
Which nutritional component has the greatest within-person variation and thus requires the most recorded days of intake to estim
irinina [24]

Vitamin A nutritional has the greatest within-person variation and thus requires the most recorded days of intake. It is a micronutrient.

<h3>Micronutrients and vitamin A</h3>

Micronutrients such as vitamins and minerals are nutrients obtained from the diet in small amounts.

Vitamin A (retinol) is a fat-soluble micronutrient whose daily intake is variable in different individuals.

Vitamin A is a micronutrient that helps the body's natural defense against pathogenic microorganisms (e.g., bacteria).

Learn more about vitamin A here:

brainly.com/question/9179407

8 0
2 years ago
When your doctor uses a stethoscope to listen to your heart, the doctor is gathering information by using the ____.
strojnjashka [21]

Answer:

empirical method

Explanation:

This method is based on experience and observation rather than on systematic logic. In this case, the doctor would be using  ausculatation to listen to the natural sounds of the body.

5 0
3 years ago
Other questions:
  • Concerning parenteral drug admininistration, which of these is untrue? A) more predictable compared to oral administration route
    15·1 answer
  • Which individuals may not surgery on the sabbath or holy days
    12·1 answer
  • Which hormone would not be severely affected by damage to hypothalamus
    14·2 answers
  • The male reproductive gland through which the ejaculatory ducts and urethra pass is called the _______. If this gland enlarges o
    5·1 answer
  • In order from less complex to complex to more complex, which level of organization is directly after tissue?
    7·2 answers
  • What is the term for a metabolic system, such as digestion, that creates internal body heat?
    15·1 answer
  • Mary has three little balls she throws 1999 of them away how many does mary have now?
    14·2 answers
  • "If I want to cut the grass, it is imperative that I start my lawnmower."
    11·2 answers
  • A client is admitted with suspected primary hyperthyroidism. What laboratory values support this diagnosis
    10·1 answer
  • which assessment findings suggest to the nurse that this patient has characteristics seen in an individual who has reached self-
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!