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
yuradex [85]
3 years ago
8

For a class Foo, one difference between a variable declared Foo * and a variable declared Foo & is that only the variable de

clared Foo & can potentially have the value NULL.
Select one:

a. FALSE

b. TRUE
Computers and Technology
1 answer:
Studentka2010 [4]3 years ago
5 0

Answer:

False.

Explanation:

When we declare a variable as reference type we have to initialize that variable otherwise the compiler will give error that the reference variable is not initialized.You also cannot initialize the variable Foo& with NULL value because it is a reference variable and we have to initialize it.

On the other there is no need to initialize the variable Foo * since it is a pointer it can also store NULL value.

So the answer is only Foo* can store NULL value not Foo &.

You might be interested in
In preparing categorical variables for analysis, it is usually best to a. combine as many categories as possible. b. convert the
Genrish500 [490]

Answer:

In the given question the correct option is missing, which can be described as follows:

"It transforms binary, null variables into the groups."

Explanation:

These variables are real variables, which could also take up a series of variables, that are either constrained or defined. This can be regarded as a listing. It is used to analyze and convert it, into binary in the following ways, and wrong choices can be described as follows:

  • In option a, It can't combine, it only converts.
  • Option b and Option c is wrong because, it can't convert numeric, it only convert binary number to dummy variables.

5 0
3 years ago
20 POINTS!!!!!!! Which is considered a collection of code that can be run?
Arte-miy333 [17]

a computer program is a collection of instructions that can be executed by a computer to perform a specific task. A computer program is usually written by a computer programmer in a programming language.

5 0
3 years ago
There are reasons for machine designers to want allinstructions to be the same length. Why is this not a good idea ina STACK mac
swat32

Answer and Explanation:

It is generally seen that instruction are of same length in a machine design. But this is not a good factor for the stack machine as there is the function of push and pop which requires addresses and opcodes for the execution of the arithmetic operation .So, there will be lot of waste of memory space if the length of the instruction are of same .That is why stack machines should not have same length instruction.

7 0
3 years ago
A class can inherit behavior from a parent but also define its own and override parent behavior. This is called:
masha68 [24]

Answer:

Method overriding.

Explanation:

In object-oriented programming (OOP) language, an object class represents the superclass of every other classes when using a programming language such as Java. The superclass is more or less like a general class in an inheritance hierarchy. Thus, a subclass can inherit the variables or methods of the superclass.

Basically, all instance variables that have been used or declared in any superclass would be present in its subclass object.

A class can inherit behavior from a parent but also define its own and override parent behavior. This is called method overriding.

Method overriding occurs when there are two (2) methods with the same method parameter and name. The parent class handles one of the methods while the other is in the child class.

Hence, method overriding allows a child class to define its own specific implementation of a method and override parent behavior.

3 0
3 years ago
What are the principles for computer programming?<br> Please add some examples
vaieri [72.5K]
Computer Programming is the process of writing, testing, troubleshooting, debugging and maintaining of a computer program. Good programming practices mix art, craft and engineering discipline.
3 0
3 years ago
Other questions:
  • Samantha was calculating a mathematical formula on an electronic spreadsheet. She used multiple values to recalculate the formul
    12·2 answers
  • What dose it need For a device to be considered a kind of computer
    14·2 answers
  • Is backing up computer files done on the hard drive?
    5·1 answer
  • Provide an example of a question that could NOT be answered with a binary message. Explain why this is the case, making referenc
    7·1 answer
  • What is DAP? How LDAP is different from DAP?
    10·1 answer
  • ____ is the security guarantee that people who intercept messages cannot read them. A. Availability B. Encryption C. Confidentia
    9·1 answer
  • Similarities between drawing toolbar and editing toolbar​
    12·2 answers
  • Which of these lights is NOT part of the standard three-point lighting setup?
    5·1 answer
  • This isn't an academic question, but can anyone help me change the face on my apple watch to a picture from my camera roll? I've
    15·1 answer
  • (ATRCKALLB) __________is an input device that contains a movable ball on the top.​
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!