+ 1

Wat is an encapsulation?

24th Mar 2018, 10:33 AM
yaswanth yashu
yaswanth yashu - avatar
7 Respuestas
+ 4
It describes the idea of bundling or wrapping data and methods together as a single unit. Hope this helps :)
24th Mar 2018, 10:37 AM
Deddy Tandean
+ 3
Setter and getter- access private data in a program
24th Mar 2018, 1:30 PM
Muhd Khairul Amirin
Muhd Khairul Amirin - avatar
+ 2
wrapping data in the form of object?
24th Mar 2018, 10:39 AM
yaswanth yashu
yaswanth yashu - avatar
+ 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 :)
24th Mar 2018, 10:50 AM
Deddy Tandean
+ 1
wat are getters and setters
24th Mar 2018, 10:52 AM
yaswanth yashu
yaswanth yashu - avatar
+ 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.
24th Mar 2018, 10:53 AM
Deddy Tandean
+ 1
getters and setters are methods of classes that accesses or modifies their variables
30th Mar 2018, 2:17 PM
Samuel Hagan
Samuel Hagan - avatar