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

I NEED HELP PLEASE THANK U!!!
ASAP!! HELP write an equation to represent: The sum of fifteen and six times a number t is eighty-one what is the number i did 6t + 15= 81 +15 i think pls pls p
GH has a midpoint at M(5,5). Point His at (3,9). Find the coordinates of point G
what is the complete predicate ?
I NEED HELPP PLEASE YALL
i need explanation aswell ​
11. Stationary Expenditure A stationery store sells pencils at $1.20 each, erasers at $2 each, and compasses at $5 each. Write a program that asks the user for
What is the difference between explicit and implícit?
THE PENGUIN PATTERN Can you figure out the value of the '2' in the pattern below? ( 1 3 7 13 21 ? 43​
Evaluate the expression below when a= -5 and b= 2 0.5a - 2b