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
PLEASE HELP
deff fn [24]

Answer:

He wants to know if the Point of Service (POS) option available with some HMOs will be of any help in this situation...

Explanation:

He wants to know if the Point of Service (POS) option available with some HMOs will be of any help in this situation...

5 0
3 years ago
Functions of the accessory glands of the male reproductive system include all of the following, EXCEPT
lara [203]

The correct answer is A. Production of spermatozoa

Explanation:

The accessory glands in males include different glands and structures such as the bulbourethral glands, prostate gland, and seminal vesicles that produce different substance to protects or preserve spermatozoa by providing this ith nutrients, and buffers that regulate the pH, besides this, in the case of the seminal vesicles, these transport the spermatozoa and the other fluids. However, it is not a function of the accessory glands to produce spermatozoa as this occurs in the testes that are not part of the accessory glands.

3 0
3 years ago
Read 2 more answers
What are the three layers of tissue that run the length of a skeletal muscle?
erastova [34]
Skeletal muscles contain connective tissue, blood vessels, and nerves. There are three layers of connective tissue: epimysium, perimysium, and endomysium. Skeletal muscle fibers organized organized into groups called fascicles. ( hopes this helps!)
8 0
3 years ago
Read 2 more answers
Which of these would be considered a public health program one injury and illness prevention in which EMS could participate?
alexandr402 [8]
A. CPR training is the one ems could participate
8 0
4 years ago
The nurse has just completed an admission assessment of the client with anorexia. When documenting the mental status exam findin
Archy [21]

Answer:

b. "Others are just trying to keep me from looking good."

Explanation:

7 0
3 years ago
Other questions:
  • Oral Communications class:
    12·1 answer
  • Would my bones reform my flesh?
    15·2 answers
  • dual x-ray what is a low exposure radio graphic measurement of the spine and hips to evaluate bone density
    6·1 answer
  • What is the most common cancer in male
    9·1 answer
  • Which would most likely affect a patient who has dementia, and how can it be avoided?
    9·1 answer
  • Which of the following is not a common cause for excercise related injury
    7·2 answers
  • Which of the following best describes nonessential amino acids?
    10·1 answer
  • What is the word element related to milk?
    14·2 answers
  • When assuming the management of the care of a delusional client, which should be the nurse's priority intervention?
    8·1 answer
  • opqrst is considered a focused assessment for the evaluation of pain which has brought the patient in for this particular event.
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!