NMcozmarnara NMcozmarnara
  • 16-01-2017
  • Computers and Technology
contestada

Programmers say the data items are ____ only within the module in which they are declared.

Respuesta :

kaevras
kaevras kaevras
  • 16-01-2017
Data items are "local".

Consider the following example in C++.


class MyClass
{
public:
    void setX(int x)
    {
        this->x = x;
    }

private:
    int x;
};


We have an integer variable local to the scope of the class declaration, and we have another integer variable local to our setX() function, though we have no global functions, that's something you want to try to avoid as a general rule of thumb.
Answer Link

Otras preguntas

Starch is a carbohydrate formed by bonded glucose molecules. What type of reaction does this represent? A.) ATP B.) cellular respiration C.) photosynthesis D.)
What is a similarity between y=e" and y= In()?
To help you remember its meaning what two words could you create from the word permafrost
What allowed for the spread of Christianity throughout the Roman Empire
The temperature at the boiling point remained constant despite the continued addition of heat by the Bunsen burner. What was the energy used for? Select one: En
In what form is carbon found in the atmosphere? 1. CO2 2. C6H1206 3. H20 4. ATP
A slogan promoting STEM
What is the distance a light wave will travel in one year? 1 kilometer O 1 galaxy 1 year 0 1 light-year
what places of america did alonso de pineda explore
Est-ce qu'il regarde la télévision? O Correct O Incorrect