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
xz_007 [3.2K]
3 years ago
13

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

rs, initialized to 12, another is of type boolean called isTicking, initialized to true, and the last one is of type Integer called diff, initialized to 5.
A) Public class Clock {
B) Private int hours = 12;
C) Private boolean isTicking = true;
D) Private Integer diff = 5;
Computers and Technology
1 answer:
maksim [4K]3 years ago
3 0

Answer:

Following are the program definition in the Java Programming Language.

//define a class

public class Clock

{

//set integer type variable and initialize value

private int hours=12;

//set boolean type variable and initialize value

private boolean isTicking=true;

//set integer type variable and initialize value

private Integer diff=5;

}

Explanation:

Following are the description of Code.

  • Firstly define a class "Clock" with the "private" access modifier.
  • Then,  set the integer data type variable "hours" with the "private" access modifier and assign value 12 in that class.
  • After that, set the boolean data type variable "isTicking" with the "private" access modifier and assign value "true".
  • Finally set Integer class variable "diff" with the the private access modifier and assign value 5.
You might be interested in
If i tell you my email will you give me a joke
pentagon [3]

Answer:

i don't want ur email but here's a joke more like a riddle: I speak without a mouth and hear without ears. I have no body, but I come alive with wind. What am I?

answer an echo

Explanation:

5 0
3 years ago
Use the drop-down menus to complete the statements about integrating pictures and text in a Word document.
FrozenT [24]

Answer:

1. Move with text

2. Fix position on page

3. Remove background

Explanation:

EDGE 2021

7 0
3 years ago
Read 2 more answers
A machine called a centrifuge is used in _____.
Alenkasestr [34]
A machine called a centrifuge is used in many technologies and branches of science, it uses rotary motion to separate material held in suspension from the medium it is suspended in.
7 0
3 years ago
Caden, Jacob, Lucas, and Michael, whose last names are Armstrong, Boothe, Gardner, and Robinson, live in four houses in a row.
Anit [1.1K]

Answer:

Jacob Gardner - Lucas Robinson - Caden Boothe - Michael Armstrong

Explanation:

According to clue 4, Lucas's house is not the first, and he has a house on his right, so it can only be house 2 or house 3. Therefore, Caden's house (which is on the right right of Lucas's), it can only be house 3 or house 4.

In turn, track 1 says that Michael's house is not next to Lucas's, so it can be 1 (if Lucas's house is 3) or 4 (if Lucas's house is in 2).

Track 2 says that there is a house before Michael's, which eliminates the possibility that Michael's house is number 1 (there would be no previous house). Thus, in addition, Lucas's house turns out to be 2 (Michael's house is not next door) and Caden's is 3, while Jacon's is house 1.

Jacob - Lucas - Caden - Michael

In turn, regarding surnames, clue 2 says that Robinson's house is after Gardner's and before Michael's. Thus, Robinson can be the last name of Jacob or Lucas, and Gardner that of Lucas or Caden. Now, since Boothe's house is just before Armstrong's, the order would be as follows:

Jacob Gardner - Lucas Robinson - Caden Boothe - Michael Armstrong

4 0
3 years ago
Which statement about the router configurations is correct?
Alika [10]

Answer:

<em>Answer : D</em>

Explanation:

When we check Branch3 router according to the attached diagram we notice that “network 192.168.10.0” command is missing under “router eigrp 100” .

Branch 3# Show running-config according to the attached diagram

<output ommited>

!

router eigrp 100

network 192.168.16.0

6 0
3 years ago
Other questions:
  • Go to the Creamy Ice Corporation passage on the next page. Insert the trademark sign after the word “Corporation'' in the first
    9·1 answer
  • What do u call a individual that loves motor bikes and leather and is in a rival group known as mods?
    5·1 answer
  • What characteristics need to be exhibited by an organisation to improve its software process?
    7·1 answer
  • The only requirement of __________ is that the sender must provide some mechanism whereby the receiver can opt out of future ema
    14·1 answer
  • A user reports that nothing happens when he or she attempts to print from the computer at his desk. This points to a possible pr
    11·2 answers
  • Basics AutoCare is a small auto service business with two locations in a Midwest (U.S.) city. The business is based on providing
    13·1 answer
  • Who invented Leibnitz calculating machine ?
    12·1 answer
  • WILL GIVE BRAINLEIST PLZ HELP PLZ AND THANK YOU
    7·1 answer
  • How many passes will it take to find 30 using a binary search?
    6·1 answer
  • a user complains he cannot access a particular website, although he is able to access other websites. At which layer of the OSI
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!