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

please help on this one?
Which of the following statements describes a similarity between the earthquake in Haiti and that in Chile?
Name one of the seven health skills and explain how it can help you avoid risky behavior, protect your health, or protect the health of others
At our school, 5 out of 7 students is involved in an after school activity. How many of the 700 students are in an after school activity at our school?
Please help asap 25 pts + brainliest to right/best answer
Joanna went school supply shopping. She spent $30.52 on notebooks and pencils. Notebooks cost $2.16 each and pencils cost $1.10 each. She bought a total of 21 n
How does a graph show a function?
The prefix dodeca-means what? Check all that apply. A-8 B-6 C-20 D-12
ich excerpt from "Seventh Grade” best expresses the main conflict that Victor faces in the story? They talked about recent movies, baseball, their parents, and
Anyone know this!??!