pernellmar7834 pernellmar7834
  • 18-01-2021
  • Computers and Technology
contestada

When defining a class, it is a best practice to declare ____ as private. constructors mutators nothing should be private accessors variables

Respuesta :

codiepienagoya codiepienagoya
  • 22-01-2021

Answer:

The answer is "variables".

Explanation:

It is necessary to declare a variable privately when declaring a class because the private variable 'protects' the code while it is in operation. It may not aim to protect it at this stage from changing the codes themselves for other developers. Its purpose of the so-called "data hiding" is to hold the internal data from many other classes using the class protected.

Answer Link

Otras preguntas

which of the following is an incorrect description of the function of dialogue ? it conveys information it influences characters it relates an experience it d
What is equivalent to xy/a - 1/b
what is the equation
Stable isotopic analysis of oxygen from ice cores dating to the holocene indicates that:
Which political activity is most directly connected with the idea of popular sovereignty?
define people groups that are native to a region?
Identify the verb form in the following sentence. Ernie has been wishing for a new bike since last summer.
Which is the focus of a parabola with equation y^2=-12x? A. (-3,0) B. (0, -3) C. (0,3) D. (3,0)
Cellular respiration uses one molecule of glucose to produce Select one: a. 2 ATP molecules. b. 36 or 38 ATP molecules. c. 34 ATP molecules. d. There are no ATP
An anthropologist finds bone that her instruments measure it as 0.601% of the amount of Carbon-14 the bones would have contained when the person was alive. How