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
Please help asap will mark brainliest
steposvetlana [31]
The answer is -6x^2 + 7x, or answer choice A.
6 0
3 years ago
Read 2 more answers
If p = the price of a pair of basketball shoes, which algebraic expression
Kryger [21]
The answer will be D
7 0
3 years ago
Read 2 more answers
The perimeter of a scalene triangle is 14.5 cm. The longest side is twice that of the shortest side. Which equation can be used
prohojiy [21]

Answer:

Step-by-step explanation:

If the longest side is 6.2 cm, and it is twice the length of the shortest, then we can write an equation as 2x=6.2, where x is the short side length.

Then, since a triangle has 3 sides, the medium side length is 14.5-6.2-x.

Hope that helped,

-sirswagger21

4 0
3 years ago
What is the answer to -3+p=?
nata0808 [166]
There is not an answer to an expression. 

-3+p is an expression, unless there was an equal sign and a sum at the end, that is when we can solve for the variable x. 

-3+p simply equals -3+p
7 0
3 years ago
Read 2 more answers
Solve the equation <br><br> 6-x-x=18<br><br> A. -6<br> B. 6<br> C. 9<br> D. -9
Veronika [31]
A. x = -6
6-x-x = 18
6-2x =18
-2x = 12
x = -6
4 0
3 years ago
Other questions:
  • A distance AB is observed repeatedly using the same equipment and procedures, and the results, in meters, are listed below: 67.4
    6·1 answer
  • Find the exact value of tan(x-y) if sinx=8/17 and cosy=3/5
    5·2 answers
  • How has globalization impacted our social world? Provide an example
    6·1 answer
  • Evaluate (16/81) to the power 3/4
    10·1 answer
  • What is the bohr diagram for Titanium +4charge ions.
    15·2 answers
  • What is the slope of the line that
    13·1 answer
  • What is the length of the hypotenuse?
    6·2 answers
  • Nb gn njjrndndnfnfjdjfjfi
    15·1 answer
  • X+y=7<br> x-y=5<br> solution with subsitution method
    5·2 answers
  • Can I get help ? It counts as 50% as my grade lol. I got more ..
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!