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
Stefan is finalizing his presentation by adding media files and preparing it for distribution. Stefan knows that saving a presen
blsea [12.9K]
The answer would be XPS
3 0
3 years ago
Semiconductors are only somewhat conductive electronic components.<br><br> True or False?
timofeeve [1]

Answer:

True

Explanation:

A semi conductor can be defined as a material , a component or a substance that has the ability to conduct or transmit electricity partially.

This is because their ability to conduct electricity or to be conductive occurs between a conductor and an insulator.

Examples include silicon, carbon, germanium, e.t.c.

Semiconductors help to control and regulate the rate at which electricity is conducted or transmitted.

Therefore, semiconductors are only somewhat conductive electronic components.

5 0
3 years ago
Janet received an email from a bank asking for the password for her Internet banking account. She emailed back her password. A f
Tcecarenko [31]
Probably a phishing scam

asks for personal information claiming to be a person from a legitimate bank
6 0
3 years ago
Read 2 more answers
Three common risk factors for young drivers and how you plan to minimize these factors.
djverab [1.8K]

Answer: making a simple mistake which ends in someone getting hit or close to being hit like not turning on your signal light

going too fast which makes it more difficult to make turns properly

if the car is a manual trying to start on a hill and rolling backwards into a car

Drivers ed and practicing in a parking lot or something or the sort

Explanation:

7 0
3 years ago
Assume that a variable variable, number Of Sides has been initialized. Write a statement that assigns the value True to the vari
inna [77]

Answer:

public class ANot {

   public static void main(String[] args) {

   

       int numberOfSides = 20;

       boolean isQuadrilateral;

       if(numberOfSides==4){

           isQuadrilateral = true;

           System.out.println("The triangle is quadrilateral");

       }

       else{

           isQuadrilateral=false;

           System.out.println("The triangle is not quadrilateral");

       }          

}

}

Explanation:

  1. Create and Initilize the int  variable numberOfSides (You can also receive this from a user using the scanner class for example).
  2. create a boolean variable isQuadrilateral
  3. Use if and else statement to check if numberOfSides ==4 and assign true to isQuadrilateral else assign false
7 0
3 years ago
Other questions:
  • Raeball was a lovin doll. And she spoke her mind as she stood tall. She made you special and loved. You're missed by so many. An
    10·2 answers
  • What is the output of the following Java code?int x = 1;do{System.out.print(x + " ");x--;}while (x &gt; 0);System.out.println();
    14·1 answer
  • In "When Is a Planet Not a Planet?" why does the author say that the outer planets are made of gas when the inner planets are ma
    5·1 answer
  • Which of the following operation is not performed by a mouse 1) left click , middle click , right click, double click​
    15·2 answers
  • Which tool will select the lines of a sketch in digital software?
    7·1 answer
  • What is digital scavenger hunting? A. An application that locates addresses B. A scavenger hunt where players use GPS and digita
    5·1 answer
  • When looking at security standard and compliance, which three (3) are characteristics of best practices, baselines and framework
    8·1 answer
  • This code --&gt; plt.plot(x,y) is used to draw :
    8·1 answer
  • • Use variable to create the number 0 at location 0, 400.
    11·1 answer
  • You are the security analyst for your organization and have discovered evidence that someone is attempting to brute-force the ro
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!