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
valentina_108 [34]
4 years ago
8

The main purpose of a constructor is to initialize the data members at the moment that an object is created. true or false?

Computers and Technology
1 answer:
GalinKa [24]4 years ago
4 0

Answer:

True

Explanation:

In Object Oriented Programming, a constructor is a type of subroutine whose purpose is to create an object.

when the constructor is called, it initializes the data members of the object and establishes the invariant of the class.

Some important concepts:

Data members: The data members are the data encapsulated within the object (e.g. int hour for the variable <em>'hour'</em> in an object called <em>'date'</em>)

Invariant of the class: The class invariant is the invariant used to constrain the object (e.g. values between 0 and 24 for the variable <em>'hour'</em>)

You might be interested in
When delivering digital technologies to clients, what is a best practice to make those solutions sustainable?
lidiya [134]

When delivering digital technologies to clients, a best practice is to: Recommend the client spread out their data centers to distribute energy usage globally.

<h3>What is a computational sustainability?</h3>

Computational sustainability can be defined as a process through which societal, economic, ecological and environmental resources are balanced through the use of various mathematical and computational techniques.

<h3>The importance of computational sustainability</h3>

Generally, computational sustainability helps to produce sufficient amount of energy for the world to globally distribute and support its biological systems.

In order to achieve computational sustainability, it is essential to practice the following:

  • Ensure that software applications are widespread.
  • Clients should spread out their data centers.

In conclusion, a best practice for delivering digital technologies to clients is to recommend a spread out of data centers to distribute energy usage globally.

Read more on computational sustainability here: brainly.com/question/24882256

6 0
2 years ago
What are 2 ways to send a message to your client when signed in as an accountant user?.
7nadin3 [17]

Answer:

The use of Ask client and request are 2 ways to send a message to your client when signed in as an accountant user.

4 0
2 years ago
Write an assembly program to find the largest item in an array and store it in a variable named MAXIMUM. Hint: Use both Jump and
Gekata [30.6K]

Use the knowledge of computational language in C++ to write the a code assembly program to find the largest item.

<h3>How to write a maximum function in C++?</h3>

To make it simpler the code is described as:

<em>#include<bitd/stdc++.h></em>

<em>Using namespace std;</em>

<em>Int main(){</em>

<em>Int arr[10]={10, 2, 23, 45, 21, 11};</em>

<em>Int min=INT_MAX;</em>

<em>Int max=INT_MIN;</em>

<em>for(int i=0;i<10;i++)</em>

<em>If(min<arr[i])min=arr[i];</em>

<em>for(int j=0;j<10;j++)</em>

<em>if(max>arr[j])max=arr[j];</em>

<em>Cout<<max<<” “<<min<<endl;</em>

<em>return 0;</em>

See more about C++ code at brainly.com/question/19705654

7 0
2 years ago
In what ways can technology help you be more
Liono4ka [1.6K]

Answer:

All the options below A-D apply.

Explanation:

A) computers and printers allow for the creation of electronic documents. Apps which detect grammatical blunders help to reduce and eliminate grammatical errors thus making the document more concise, lucid and to the point.

B) ICT enables one communicate with anyone, anywhere in the world. With a mobile phone and the relevant apps, it is possible to reach any country via the internet or via the traditional telecommunications systems.

C) Thumb Drive is also known as a Flash Drive or a USB Storage Device. It allows for the storage all types of file/documents. They may be vidoes, audio files, word processed files, etc.

D) Apps can help with procastination.

The can help on to set up reminders about tasks that ought to be done.

Cheers!

5 0
3 years ago
How does a computer interact with its environment? How is data transferred on a real computer from one hardware part to another?
Dmitriy789 [7]

Answer:

Explanation:

A computer system can interact with its environment using hardware that does so such as cameras, robotic arms, thermometers, smart devices etc. These hardware devices gather information from the environment and transfer it to the computer system in a format known as bits through binary electrical impulses. If the system is designed to be autonomous then the only human interaction needed would be the initial setup of the system and its hardware, once this is done the system does not need any more human interaction as long as nothing breaks.

8 0
3 years ago
Other questions:
  • A/An is a series of instructions or commands that a computer follows; used to create software
    10·2 answers
  • The Spell Checker can be found in which two locations in most word processing software?
    11·1 answer
  • Add the following binary numbers. 101110010 and 111001101
    13·1 answer
  • What does the line of red semicircles mean on a weather map
    11·1 answer
  • Your supervisor has asked you to set up a RAID hard drive array in a tower system, which has a motherboard that uses the B360 ch
    10·1 answer
  • Parts are described by partnum, color, and price. Parts can be subassemblies as well and this means that they contain other part
    8·1 answer
  • Amy, a project manager, needs to make a plan that ensures consistent delivery of the right message to the right people at the ri
    11·1 answer
  • After successfully building a machine language version of thePascal compiler, one could in principle discard the P-code interpre
    6·1 answer
  • Hey yall wanna send me some just ask for my phone #
    13·1 answer
  • In your own words, describe invention.
    8·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!