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
nika2105 [10]
3 years ago
10

To guarantee that the member variables of a class are initialized, you use ____.

Computers and Technology
1 answer:
Leya [2.2K]3 years ago
8 0
A constructor, member initialization lists and also the default member initializer. Here you see all three (in reality you choose one construct per variable).

class A
{
  public:
    int x = 0;

   A() : x(1)
   {
      x = 2;
   }
};
You might be interested in
question 2 what are some types of software that you'd want to have an explicit application policy for? check all that apply.
zaharov [31]

The types of software that you'd want to have an explicit application policy are:

  • Filesharing software
  • video games

  • Explicit application policy are simply refered to as legal rights that are stated regarding ownership or company. It is actual substance of an agreement

  • Video games and filesharing software is of not really important in som business. So therefore, having explicit policies showing why or not this type of software is permitted on systems is okay.

Conclusively, we can say that Filesharing software and video games can require an explicit application policy.

Learn more from

brainly.com/question/12730075

4 0
3 years ago
In Microsoft Word you can access the _______ command from the "Mini toolbar".
xenn [34]
I think the answer is save as
4 0
4 years ago
Please help with coding assignment.
Inessa05 [86]

Answer:

import java.util.Random;

class Main {

   

   public int stopAtFive (int j) {

      Random rand = new Random();

      int number = 0;

      for(int i=0; i<j; i++) {

          number = rand.nextInt(9)+1;

          System.out.println(number);

          if (number == 5) {

              System.out.println();

              break;

          }

      }

      return number;

   }

   

   public static void main(String args[]) {

       Main main = new Main();

       main.stopAtFive(20);

       main.stopAtFive(20);

   }

}

Explanation:

Your requirements do not say what has to be displayed or returned from the method, but you can use this as a starting point.

4 0
3 years ago
Touchdowns were worth 7 points. Braydenand Gavin scored 7 touchdowns. Cole andFreddy's team scored 9 touchdowns. Howmany more PO
Lubov Fominskaja [6]

Answer:

14 points

Explanation:

Touchdowns are worth 7 points

Since Brayden and Gavin scored 7 touchdowns, they will have 7 * 7 = 49 points

Since Cole and Freddy scored 9 touchdowns, they will have 9 * 7 = 63 points

Cole and Freddy have 63 - 49 = 14 more points than Brayden and Gavin.

7 0
4 years ago
Najbardziej znane przeglądarki internetowe
grin007 [14]

What is the question?????


4 0
4 years ago
Read 2 more answers
Other questions:
  • The salesperson in a cell phone store is telling me that the phone I'm considering has 8GB of memory, which means I can save 10,
    13·1 answer
  • Which is the output of the formula =XOR(120&lt;102;83=83;51&lt;24)??
    11·2 answers
  • What does an executable file contain? Program instructions written in source code. Program instructions that have been compiled
    15·1 answer
  • How to solve 3(x - 2) = 9x<br><img src="https://tex.z-dn.net/?f=3%28x%20-%202%29%20%3D%209x" id="TexFormula1" title="3(x - 2) =
    14·1 answer
  • HURRY!!!!!!
    5·1 answer
  • bad word bad word bad word bad wordbad word bad wordbad word bad wordbad word bad wordbad word bad wordbad word bad wordbad word
    5·1 answer
  • We need ____ pointers to build a linked list.
    6·1 answer
  • Complete the sentence about entering and editing data in a cell in a spreadsheet.
    13·1 answer
  • Find different between manocots and dicots clarify with example​
    14·1 answer
  • Although plants and ainamals are both living things___
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!