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

All living things use nitrogen toA)reproduce.B)make sugar.C)make proteins.D)transport water.​
PLEASE HELP ME I WILL GIVE BRAINLIEST TO ANYONE WHO KNOWS THE RIGHT ANSWER.
What is the answer to the problem
Brainers, please help me out. Thanks a lot.
1) Some species of insect are thermogenic and capable of producing their own heat. If a physiologist wanted to study the mechanism of heat production, what cell
Which ones correct I’ve taken this 3 times and I really don’t want to get it wrong again
In a college admissions essay, it is appropriate to A.) promote oneself B.) use third person point of view C.) use casual language D.) cute secondary sources
When a hot metal cylinder is dropped into a sample of water, the water molecules _____________________ to reach the final temperature.
Which expression is equivalent to -1/3(6x+15)-3
can anybody help me on this