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

describe the physical state of matter in the asthenosphere
Explain the connection between your  body and supernova
what organ absorbs excess water from undigested food prior to its release from the body as a solid waste
What's the difference between the axis and allies powers in WWII
what main political groups existed in the colonies in the 1770 and how did they get there names
A passenger walks toward the rear of a moving train. Describe her motion as seen from a reference point on the train. Then describe it from a reference point on
Rema is older than Ken. The difference if their ages is 12 and the sum if their ages is 50. Find the age if each.
What are two advantages that locomotion gives to an organism?
Find the missing value for each rectangular prism. 1. Volume = 6 cu in Length = 3 in Width - 2 in Height = ____ 2. Volume = 96 cu yd Length = ____ Width = 6 yd
put 983 in scientific notation.