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
Tema [17]
4 years ago
11

A class named Clock has two instance variables: hours (type int) and isTicking (type boolean) Write a constructor that takes a r

eference to an existing Clock object as a parameter and copies that object's instance variables to the object being created Your task: Write a Clock constructor that makes this possible. Just write this constructor-don't write the whole class or any code outside of the class! 1-ublic ClockOt this.hours hours 3 this.isTicking - isTicking; 75 characters 5000 maximum Previous Submissions xCode Analysis: Logic Error(s) Remarks and Hints: The constructor should take one parameter. Unexpected identifiers: this Your assignment seems to be backwards.
Computers and Technology
1 answer:
NeX [460]4 years ago
7 0

Answer:

public Clock (Clock c)

{

hours = c.hours;

isTicking = c.isTicking;

}

Explanation:

Since the name of the Java class is called Clock, the constructor must have that same name, so we start by declaring the constructor as public Clock (Clock c) with a clock parameter. Within the contructor body we assign the variables hours and isTicking to the respective member feilds

You might be interested in
8. Why is it important not to download pictures to your school or workplace network if you do not plan to use them?
Anni [7]

Answer:

not appropriate use of technology.

Explanation:

7 0
3 years ago
When would you use conditional formatting on a cell?
Charra [1.4K]
You use conditional formatting on a cell if the numbers are less then zero.
4 0
3 years ago
identify at least three additional ethical responsibilities expected from a computer professional. In brief, explain each respon
kompoz [17]

The ethical responsibilities for computer professionals are:

Respect Confidentiality.

Maintain professional competence.

Respects and protection of personal privacy.

Explanation:

  • Computer professionals are expected to conduct themselves in an ethical manner.
  • Codes of ethics exist in this field to help these professionals make good decisions about the manner of their professional work.
  • A computer professional must strive to provide the highest quality of work possible by acquiring and maintaining professional competence. He should be knowledgeable in the laws pertaining to his profession and not violate them.
  1. Respect Confidentiality : Confidentiality refers to protecting information from being accessed by unauthorized parties. Only the people who are authorized to do so can gain access to sensitive data. All the security incidents reported in the media today involve major losses of confidentiality.
  2. Maintain professional competence : The capability to perform the duties of one's profession generally, or to perform a particular professional task, with skill of an acceptable quality. Maintaining professional competence allows individuals to learn throughout their career, to develop technical skills, and to keep pace with accountancy changes.
  3. Respects and protection of personal privacy : Privacy computing includes all computing operations by information owners, collectors, publishers, and users during the entire life-cycle of private information, from data generation, sensing, publishing, and dissemination, to data storage, processing, usage, and destruction.

8 0
4 years ago
Im stuck in this and its a easy
Tamiku [17]

Answer:

just turn off your computer.

Explanation:

4 0
3 years ago
Read 2 more answers
Explain the concept of “survival of the fittest”
klasskru [66]

Answer:

i think thats a line from  the lorax

Explanation:

4 0
3 years ago
Other questions:
  • Which of the following menu commands would you select to make a copy of an open file and rename it
    14·2 answers
  • Using powerpoint 2016, ethan develops a short five-slide presentation for his marketing project. â â powerpoint files consist of
    6·1 answer
  • Which symbol is used to identify edge-triggered flip-flops? a triangle on the clock input. the letter e on the enable input. a b
    14·1 answer
  • Ben sends a few emails over the weekend to his relatives. Where should Ben place his laptop so that he can avoid slouching while
    11·1 answer
  • Which of the following payment types require you to pay upfront?
    9·1 answer
  • How many bits long is a autonomous system number?
    13·1 answer
  • Evaluate the merits of a hard disk drive or a solid state drive to use as the secondary storage
    5·1 answer
  • Deleting messages keeps them in the mailbox and on the server. How can they be removed from the server to reduce the quota?
    5·2 answers
  • What was the name of the first computer, developed by charles babbage?.
    7·2 answers
  • Hypertext enables you to navigate through pieces of information by clicking the __________, that connect them.
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!