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
Lerok [7]
3 years ago
5

Insert the missing code in the following code fragment. This fragment is intended to implement a method to set the value stored

in an instance variable.
Public class Employee
{
Private String empID;
Private boolean hourly;
) . .
_______
{
Hourly = isHourly;
}
}
A) public void setHourly(String isHourly)
B) public void getHourly()
C) public boolean getHourly()
D) public boolean setHourly(boolean isHourly)
Computers and Technology
1 answer:
N76 [4]3 years ago
5 0

Answer:

A)

Explanation:

In this code example the missing piece of code would be...

public void setHourly(String isHourly)

This piece of code is creating a function called setHourly which takes in one String variable as it's parameter. Based on the rest of the code, the function takes that parameter variable and places it into an instance variable called Hourly which can be used when the function is called.

You might be interested in
Imaging a computer is part of what phase of conversion?
grandymaker [24]
B. Because the computer can rearrange itself when it is in a phase of conversion
5 0
3 years ago
Which device in a wireless local area network determines the next network to which a packet should be forwarded??
tatiyna
Router



---------------------
8 0
4 years ago
"Bookings are to be stored in three separate
Zina [86]

Answer:

it is a complete routine of life without it we cannot do time management

Explanation:

mark me brainliest ❤

5 0
3 years ago
Why is the statement if x=y not working in python
Veronika [31]

Answer:

x=1

Explanation:

Re-run your installer (e.g. in Downloads, python-3.8. 4.exe) and Select "Modify". Check all the optional features you want (likely no changes), then click [Next]. Check [x] "Add Python to environment variables", and [Install]

8 0
2 years ago
Write the following word or words in Spanish.<br><br> the male teacher
cupoosta [38]

Answer:

Maestro

Explanation:

8 0
3 years ago
Read 2 more answers
Other questions:
  • Chunking is a good strategy for completing large assignments because it makes the work
    15·1 answer
  • Describe Format Painter by ordering the steps Jemima should follow to make the format of her subheadings more
    6·1 answer
  • What limited the possibilities of game development from a technical viewpoint?
    7·1 answer
  • Which of the following is the best name for a history report about world war 1
    7·1 answer
  • The following are types of numbers except one. Select the one which is not an integer.
    11·1 answer
  • In the context of applications of artificial intelligence (AI), _____ perform well at simple, repetitive tasks and can be used t
    11·1 answer
  • What is output if the user types in 8
    15·1 answer
  • Why are computer manufacture constantly releases fast computer and do user benefit from ths speed
    9·1 answer
  • What is the address of the first SFR (I/O Register)​
    11·1 answer
  • Which of the following makes Super Mario Run unique?
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!