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

According to the Law of Conservation of Matter, if I have an Oreo cookie that weighs 20 grams and I crush it into crumbs for a recipe, how much do the crumbs we
Any gîrls here interested in zööm
Rahi is pouring concrete to create the foundation of a square deck covering 112 square feet. Which is the best estimate of one side of the deck? Round to the ne
Jocelyn complied data on the number of hours students work per week the summer after senior year. The minimum number of hours is the distribution was 23. The ra
uld Carbon Dioxide be at its lowest level? A) July B) April C) January D) Ma What created the weather anomaly in the winter of 1980?
In 1860 the small towns became a city. true or false
DONT delete my question or else!!! AM i a awful person??
desparte in silabe cuvintele date apoi incercuieste diftongii marcand semivocalele cu semnuls pecific
Any gïrls here free to talk
What element is in period 4, group 12?