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 image size and resolution are the same, which file format, .jpg, .gif, .or .tiff, will give you the smallest file size?
dimaraw [331]
.jpg will be the smallest size
3 0
3 years ago
Read 2 more answers
Users generally do not understand the concept of network drive sharing. they only know they can store their files "on my f: driv
Ivenika [448]
In windows, drive mapping. 
4 0
3 years ago
Display all 3-digit automorphic no.s.<br>Guys I need help!!!!!!<br>I WILL GIVE THE BRAINLIEST ❤️​
pshichka [43]

Answer:

hope my answer helps

Explanation:

Automorphic Number

Given a number N, the task is to check whether the number is Automorphic number or not. A number is called Automorphic number if and only if its square ends in the same digits as the number itself.

Examples :

Input : N = 76

Output : Automorphic

Explanation: As 76*76 = 5776

Input : N = 25

Output : Automorphic

As 25*25 = 625

Input : N = 7

Output : Not Automorphic

As 7*7 = 49

8 0
2 years ago
Read 2 more answers
John would like to move from the city into the suburbs and has been saving up a large down payment for a home. Which is the most
solong [7]
Strictly cost effective would be to pay cash for the house. Second most cost effective would be a very short term mortgage, less that 5.5 years which is the point where long term loans become equal amounts interest and principle.
7 0
3 years ago
The Occupational Outlook Handbook is published by the Bureau of Labor Statistics.
vlabodo [156]
A. True
It was written in 1948 by the Bureau of Labor Statistics
7 0
3 years ago
Read 2 more answers
Other questions:
  • Your bank contacts you asking you to phone a number supplied in the email.What do you?
    13·2 answers
  • Ill give you brainiest.
    9·1 answer
  • In Microsoft Exel, graphs are refered to as_________
    5·1 answer
  • The multitasking, multi-user, operating system developed by Bell Laboratories that operates on a wide variety of computing platf
    13·1 answer
  • Which is an unethical use of technology and resources at the workplace?
    13·2 answers
  • A customer survey asked respondents to indicate their highest levels of education. The only three choices in the survey were hig
    15·1 answer
  • Select the correct answer.
    15·1 answer
  • you crossed two heterozygous red flowers (dominant color), what are your chances to have a white flower
    11·1 answer
  • I have a top-secret recipe for the greatest cookie dough I have made and I want to keep the recipe a secret so I apply for a? *
    15·1 answer
  • (Print distinct numbers) Write a program that reads in integers separated by a space in one line and displays distinct numbers i
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!