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
hodyreva [135]
3 years ago
12

Write the definition of a class Clock. The class has no constructors and three instance variables. One is of type int called hou

rs, another is of type boolean called isTicking, and the last one is of type Integer called diff.
Computers and Technology
1 answer:
lisov135 [29]3 years ago
4 0

Answer:

public class Clock

// create the class

{

private int hours;

// variable declaration of  hours

private boolean isTicking;

// variable declaration of boolean

private Integer diff;

 // variable declaration of  diff

}

Explanation:

Following are the description of the above code  

  • Firstly create the class called To Create any class we use the keyword class followed by the class name.
  • In the class, we declared three variable one type integer called " hours" The second is type boolean called "isTicking" and the last one is also integer called "diff".
  • They all are three variables are private it means they are not accessible outside the class.
You might be interested in
if you love games played on facebook, such as farmville, what might be your motivation for playing games
castortr0y [4]

Plato users the answer is Social Interaction!

3 0
4 years ago
Which of the following are results of technological advancements and increased automation?
vivado [14]

Answer:

increased productivity

Explanation:

sorry if i am not correct

3 0
3 years ago
Read 2 more answers
How do you use hand sanitizer <br><br><br><br><br> I need helpppp
Dimas [21]

Answer:

Scientifically speaking both are equally as effective as long as you thoroughly cover the surface of your hands, massage between your fingers, and under your nails.

Explanation:

3 0
3 years ago
What does dram stand for?
Sati [7]
Dynamic random-access memory
4 0
3 years ago
Read 2 more answers
Which of these statements correctly describes how to adjust an image on a slide ?
loris [4]

The correct answer is Choice D.

In order to adjust an image on a slide you can resize it by clicking on the boxes at the corner and then moving it in or out in order to change its size.

3 0
3 years ago
Read 2 more answers
Other questions:
  • The process in which access looks for records in a table based on the fields and criteria in the query design, finds those recor
    6·1 answer
  • John's Plumbing prides itself on excellent customer service, especially during after-hours service calls. They want to connect w
    11·1 answer
  • Which trait depicts honesty?
    10·1 answer
  • Research different ways that 3D printing is used in society. Tell us about the items that are 3D printed.
    8·2 answers
  • What is an efficient way to ensure that the code is working as per the acceptance criteria/business requirements? (1 correct ans
    11·2 answers
  • An AM index between 0 and 1 indicates what? a. the AM signal is very small and will not be detected by the receiver b. distortio
    12·1 answer
  • Multiply 2.7×10^4 by 6.3×10^6​
    13·2 answers
  • Which type of network involves buildings in multiple cities connecting to each other?
    8·1 answer
  • In 2019, the tuition for a full time student is $7,180 per semester. The tuition will be going up for the next 7 years at a rate
    14·1 answer
  • Copying materials from a source text without using is<br> considered plagiarism<br> ?
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!