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

How many bromine atoms are present in 39.1 g of CH2Br2
Who were the winners of wwl ? Treaty of Versailles
I WILL GIVE BRAINLIST PLEASE HELP!!!!! Using complete sentences in spanish, describe a past vacation of one of your family members took to a spanish speaking co
heeeeeeeeeeeeeeelpheeeeeeeeeeeeeeelp
The graphs below have the same shape. What is the equation of the red graph?
Ada writes down at random a whole number larger than 1 and smaller than 11. Find the probability that it is.... a) Odd b) even c)a perfect square d) a power of
what is required for the initiation of an enzyme
WILL GIVE BRAINLILEST How did access to more financial resources cause more industrialization?
. A vosotros, _____ gusta aprender.
please helppppppppppppp