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
KonstantinChe [14]
3 years ago
11

Write the definition of a class Clock. The class has three instance variables: One of type int called hours, another of type boo

lean called isTicking, and the last one of type Integer called diff. You should also write a constructor that takes three parameters -- an int, a boolean, and another int. The constructor should set the instance variables to the values provided.
Mathematics
1 answer:
Vikki [24]3 years ago
6 0

Step-by-step explanation:

The definition of class as per given information is written below;

public class Clock

{

private int hours;

private boolean isTicking;

private Integer diff;

}

The constructor that takes the three variables and then set the values to the instance variables is;

public Clock (int hours, boolean isTicking, int diff)

{

this.hours = hours;

this.isTicking = isTicking;

this.diff = new Integer (diff);

}

You might be interested in
The graph of function f(x)=-1+0.5x is shown on the coordinate plane. For what value of x does f(x)=0?
Afina-wow [57]
0 = - 1 + 0.5x
0.5x = 1
x = 2
5 0
4 years ago
Which is the graph of the function f(x) = -x
daser333 [38]
I’m not the best at graphs but i did take algebra, i think it’s graph number 2. also i’m sorry if it’s wrong:(
5 0
3 years ago
What is the equation of the line that has a slope of -6/5 and goes through the point (5, -4)?
Katena32 [7]

Answer:

Step-by-step explanation:

Given

slope =6/5

point =(5, -4)

So

the equation of the line =

(y-y1)=m(x-x1)

Where X1=5,y1=-4,m=6/5

Put the values

(Y+4)=6/5(x-5)

5(Y+4)=6(x-5)

5y+20=6x-30

5y-6x=-30-20

-6x+5y=-50

6x-5y=50.

So the equation of the line is 6x-5y=50.

3 0
3 years ago
I am a number less than 3000. When you divide me by 32, my remainder is 30. When you divide me by 58, my remainder 44. What numb
yKpoI14uk [10]
Let Q1 and Q2 be the quotients from dividing 32 and 58 respectively.Then 32 Q1 + 30 = 58 Q2 + 4432 Q1 = 58 Q2 + 1416 Q1 = 29 Q2 + 716 Q1 = (16 + 13)Q2 + 716 Q1 = 16 Q2 + 13 Q2 + 716(Q1 - Q2) = 13 Q2 + 7Because Q1 and Q2 are integers, we have to find Q2 whereby 13Q2 + 7 is divisible by 16.After some try-and-error, we get Q2 = 13.  That is 13*13 + 7 = 176Therefore, Q1 - Q2 = 11  -->  Q1 - 13 = 11  -->  Q1 = 2432*24 + 30 = 58*13 + 44 = 798.I am 798
3 0
4 years ago
If RS = ST then point S is called the midpoint of .<br><br> always<br> sometimes<br> never
AlladinOne [14]
I believe midpoint would be always. If someone else answers can I have brainliest? It will give you points back
4 0
3 years ago
Read 2 more answers
Other questions:
  • Colin buys a tv for £720. It depreciates at a rate of 4% per year. How much will it be worth in 3 years? Give your answer to the
    14·1 answer
  • A man travels a distance of 20 miles at 60 miles per hour then returns over the same route at 40 miles per hour. Find the averag
    9·1 answer
  • in an isosceles triangle there are two sided, called legs, that are the same length. the 3rd side is the base. if an isosceles t
    7·1 answer
  • Describe how the data is dispersed in a box plot with the following data set: 25, 36, 21, 30, 20, 32, 38, 19, 36, 31, 26, 33, 27
    7·1 answer
  • If x=y-3 and y=z^2, what is x in term of z
    7·1 answer
  • Solve the following system of equations using inverse matrix method.<br><br>​
    10·1 answer
  • Please help it’s due at 5
    11·1 answer
  • How many terms are to be considered in the series with first term - 3 and common ratio r = -4 for the sum to exceed 1507​
    6·1 answer
  • answered it NO LINKS AND NO WEBSITES I really need help with this, and also if it's Substitution or linear combination and it's
    7·1 answer
  • A group of friends were working on a student film that had a budget of $640. They
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!