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
gayaneshka [121]
3 years ago
11

You are given a class named Clock that has three instance variables: One of type int called hours, another of type boolean calle

d isTicking, and the last one of type int called diff.Write a constructor for the class Clock that takes three parameters—an int, a boolean, and another int.The constructor should set the instance variables to the values provided.
public Clock(){
int hours, diff;
boolean isTicking;
}
Computers and Technology
1 answer:
Ivahew [28]3 years ago
5 0

Answer:

Clock (int hours, boolean isTicking, int diff) // constructor clock

{

this.hours = hours;

// set the instance variable hours

this.isTicking = isTicking;

// set the boolean variable isTicking

this.diff =diff;

//set the instance variable diff

}

Explanation:

Here we declared a constructor clock which has 3 parameter hours,boolean isTicking,and diff.

The int hours, diff is of int type and isTicking is of boolean type. In this constructor, we set the instance variables values by using this keyword.

You might be interested in
which of the following is one way that developers and organizations who produce open-source software can generate revenue from t
BlackZzzverrR [31]

The option that is one way that developers and organizations who produce open-source software can generate revenue from the software is option B. The flagship OSS product is the Linux operating system, now available on all scales of computing devices.

<h3>What is the revenue generation about?</h3>

Although it is not particularly popular, charging people for open source software is a possibility. Paid support contracts are already permitted by some businesses, such as Red Hat, which helps to support the business model and keep the programmers employed.

It is feasible to demand a predetermined payment in exchange for access to your open source code.

Therefore, one option to make money is to ask for paid support or a one-time fee for access to an open source project or piece of code.

Even if you will get ROI right away if you demand paid support from your open source provider, there are numerous potential disadvantages and drawbacks that could prevent you from realizing the full potential of the open source software or solution you choose.

Learn more about open-source software from

brainly.com/question/28905225
#SPJ1

See full question below

which of the following is one way that developers and organizations who produce open-source software can generate revenue from the software?

A. The source code for open source software may be modified and redistributed, provided it is priced reasonably and part of the proceeds is contributed to the Linux Foundation.

B. The flagship OSS product is the Linux operating system, now available on all scales of computing devices.

C. The vast majority of people who work on efforts like Linux are now paid to do so by non-profit organizations such as the Linux foundation.

D. Major hardware firms no longer employ paid staff contributing to open source projects.

E. Open source software is available for anyone to download from the Internet, but the code should not be modified.

B. The flagship OSS product is the Linux operating system, now available on all scales of computing devices.

8 0
1 year ago
Write a MY SQL query to display the name and hire date of all employees who were hired in 1992.
bagirrra123 [75]

Answer:

Select * from Employees where LastName LIKE '%H%' or LastName LIKE '%A%' or   LastName LIKE '%Z%' order by Hiredate(or whatever you put for your year name) desc;

Explanation:

6 0
3 years ago
You can use the windows ________ to check on a nonresponsive program
Elanso [62]
Correct answer: Task manager

A task manager<span> is a system monitor program used to provide information about the processes and programs running on a computer, as well as the general status of the computer. Some implementations can also be used to terminate processes and programs, as well as change the processes priority.
</span>
If a program is non-responsive and you feel like stopping it already without waiting for the system to stop it automatically as it always does, all you have to do is click: ctrl + alt + delete ---> click task manager ---> in the processes tab, click the title of the program ---> click end task.
3 0
3 years ago
Jonah has finished his assignment and now wants to save his work with the title "Renaissance."
Vanyuwa [196]

Answer:

Your answer is D.click the File tab, click Save As, type in the title, click Save

Explanation:

7 0
3 years ago
Read 2 more answers
Select the correct answer.
AnnZ [28]

Answer:

E I think is the best answer

8 0
3 years ago
Other questions:
  • Write a program to do the following: Load $t0 with 12 and call it x. Load 21 in $t1 and denote it as y. Finally, load 32 in $t2
    14·1 answer
  • Sara has a habit of stealing money from her brother Charlie. When he found out, Charlie rebuked Sara in the presence of his frie
    11·1 answer
  • The software application associated with a specific file type is called a(n) __________ application.
    12·1 answer
  • Did this technological advancement take away or create jobs? Overall, what was the contribution of this technological advancemen
    12·1 answer
  • Controller Area Network CAN B bus diagnostics is being discussed. Technician A says some modules do not set specific codes that
    13·1 answer
  • A host wants to send a message to another host with the IP address 115.99.80.157. IP does not know the hardware address of the d
    13·2 answers
  • A hacker successfully modified the sale price of items purchased through your company's web site. During the investigation that
    6·1 answer
  • In PyCharm, write a program that prompts the user for their name and age. Your program should then tell the user the year they w
    14·1 answer
  • I / a / caught / when / was / on / disease / holiday / I​
    14·2 answers
  • Complete the function favoriteFlower(). Note that the program will not run as is because the function is incomplete. The purpose
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!