+ 1
Wat is an encapsulation?
7 Respostas
+ 4
It describes the idea of bundling or wrapping data and methods together as a single unit.
Hope this helps :)
+ 3
Setter and getter- access private data in a program
+ 2
wrapping data in the form of object?
+ 1
It is actually more of like hiding your variables of a class away from another class. So, in order to access these variables, you would need methods known as getters and setters to access them. These are the forms of encapsulation. You don't allow direct access to the variables of a class directly.
Hope this helps :)
+ 1
wat are getters and setters
+ 1
It is more of like a term to describe the condition rather than a direct interpretation of wrapping data.
You should learn the basics of getters and setters as you progress through your course.
+ 1
getters and setters are methods of classes that accesses or modifies their variables