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

HELP 12 PONT'S Ronny read for 2.75 hours yesterday. His older brother read for 1.18 hours and his younger brother read for 0.43 hours. How long did the three
The major problems brought about by urbanization were
In this sentence the word herself is acting as a
Which sentence does not contain misplaced or dangling modifiers? A. Sunk at sea, the coast guard could not find the boat with three people aboard. B. Th
1 and 4/5 times 5/12
a garden snail travels about 2 3/5 feet in 1 minute. At that speed about how many hours would it take the snail to travel 350 feet
what is the square root of 74
Can someone help me answer question 8-11 please
Understanding point of view will help you to understand the main idea and to evaluate the source. true or false
$3,000 is invested in an account paying 4% interest and twice that amount is invested at 6%.. . Which of the following expressions represents the amount of inte