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
Marina86 [1]
3 years ago
11

A base class named Garden contains a private field width and a property public int Width that contains get and set accessors. A

child class named VegetableGarden 359360does not contain aWidth property. When you write a class in which you declare an object as follows, what statement can you use to access the VegetableGarden's width?VegetableGarden myGarden = new VegetableGarden();
a. myGarden.Width

b. myGarden.base.Width

c. VegetableGarden.Width

d. You cannot use Width with a VegetableGarden object.
Computers and Technology
1 answer:
goblinko [34]3 years ago
4 0

Answer:

a. myGarden.Width

Explanation:

Given: A base class named Garden contains a private field width and a property public int Width that contains get and set accessors. A child class named VegetableGarden does not contain a Width property. So the structure is as follows:

class Garden{

      private int width;

      public int Width;

}

class VegetableGarden extends Garden{

}

In the client class, we create an instance of VegetableGarden as follows:

VegetableGarden myGarden = new VegetableGarden();

From this instance the Width field can be accessed using the following mechanism:

myGarden.Width

You might be interested in
Which protocol is used for secure websites? <br> FTP<br> HTTP<br> HTTPS<br> SFTP
givi [52]
HTTPS is the answer.
Hypertext transfer protocol secure
5 0
3 years ago
Write a statement to add the key Tesla with value USA to car_makers. Modify the car maker of Fiat to Italy. Sample output for th
shutvik [7]

Answer:

car_makers = {'Acura':'Japan','Fiat':'Egypt'}

car_makers['Tesla'] = "USA"

car_makers['Fiat'] = "Italy"

print("Acura made in",car_makers['Acura'])

print("Fiat made in",car_makers['Fiat'])

print("Tesla made in",car_makers['Tesla'])

Explanation:

The first line is a define object in the python code, containing two entries of Acura and Fiat and their respective countries.

The python code adds an entry to the object "car maker" using the bracket notation, the tesla car from USA.

The country of the Fiat car is changed from Germany to Italy, using the bracket notation.

The output of the complete object and the individual cars is given.

output of the python code:

{'Acura': 'Japan', 'Fiat': 'Italy', 'Tesla': 'USA'}

Acura made in Japan

Fiat made in Italy

Tesla made in USA.

4 0
3 years ago
Pls help.
melisa1 [442]

Answer:

First one would be work ethic.

Second one would be communication.

Third one would be adaptability.

Fourth one would be creativity.

(These are all guesses tho, so i'm not 100% sure !!)

Explanation:

6 0
3 years ago
Read 2 more answers
put together a shopping list of items that a first responder should always have at immediate disposal in a field kit. Using curr
Viefleur [7K]

Answer:

dont forget the trail mix

Explanation:

honestly you can go bougie or you can go doomsday prepper macgyver style.

Ill give you what I would bring as a field medic but you didnt really specify the situation so hopefully this can spark some ideas for your project. You can find everything here on amazon so ill let you go ahead and do that..

<u>PPE</u>

gloves

masks

eye protection

reflective wear

weapon system

<u>Medical</u>

Tourniquets

Pressure Dressings

NSAIDs

Aspirin

Safety pins

IO drill

IV supplies

Space blanket

Thermometer

Chapstick

Silktape

Bacitracin

<u>EDC</u>

Flashlight

Pens/markers

write in the rain

Firestarter

Duct tape

knives/trauma shears

saw

Watch

550cord

gummy worms & water

Radio/ Garmin inreach

Triage tags

3 0
3 years ago
Write. A program to fine the difference of two number 25 and 17 . Also displays the output
Anon25 [30]

Answer:

Answer = 25-17

print("25-17", Answer)

Explanation:

You put the sum into a variable which in this case would be Answer and then you can output it with the question.

6 0
3 years ago
Other questions:
  • Which outcome is one of the negative consequences of anonymous communication over the Internet? It can lead to regulatory restri
    14·2 answers
  • Which of the following statements are valid in Java? (Assume that console is Scanner object initialized to the standard input de
    15·1 answer
  • If you used a peach as a model of an animal cell, what would the peach's skin represent? A.nucleus B.cell wall C.cytoplasm D.cel
    10·2 answers
  • You've run 200 ft of cable and lost 7dB. What is the loss rate of your cable per 100 ft?
    14·1 answer
  • What risks were involved?
    15·2 answers
  • ......... defines the path of the movement for an object.
    12·1 answer
  • Identify the symbol. please help!!<br>​
    7·2 answers
  • a deque is a type of collection,but it is not automatically available when you open IDLE. What is missing that allows you to use
    14·2 answers
  • To download your presentation as pictures, choose this option.
    9·2 answers
  • What is the earliest age you can collect social security.
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!