LILYTH824 LILYTH824
  • 20-12-2021
  • Computers and Technology
contestada

(true or false) A setter or getter method in object-oriented programming is an example of encapsulation.

Respuesta :

Аноним Аноним
  • 20-12-2021

Answer:

True.

Explanation:

Encapsulation wraps and bundle data under a single data(so external access to such variable outside of the class is restricted). Getter and Setters are functions that gets and sets a specific value within your object class. If you override the setter and getter function within the class(and not declare it in primary constructor), it allows to store and bind specific information about data inside the class.

Answer Link

Otras preguntas

Kristen cut her hand on a piece of glass. As the blood clots, how do white blood cells prevent bacteria on the glass from infecting her blood.
Eurasia is an area between _____.
A works cited list is enough documentation to avoid plagiarism. True False
Which of the following is not true when comparing and contrasting viewpoints?.
Use elimination to solve each system of equations 2x-y=-1 3x-2y=1
Okay so PLEASE HELP and the map is to the question there are 2 pictures :)
How does Creosote Bush survive in the desert?
How do you simplify the square root of 216
Under the 22nd Amendment, what is the maximum time a president may now serve? A.one four-year term B.two four-year terms C.two five-year terms D.one two-year te
As a mixed number , 240% is equal to.......