06. Encapsulation
Ishan Nikeshala Nawarathna
Aspiring Full Stack Engineer | Skilled in Java, Spring Boot, Android Developer, Hibernate, JavaScript, SQL, React-native, PHP
Java Concept
Introduction
This concept is very important among the most commonly used. The meaning of encapsulation is to make sure that ‘sensitive’ data is hidden from users. to achieve this you must :
How do we use the above method and parameter passing? etc. is what this article is talking about.
What is the set and get?
Code example :
Conclusion
“If we use encapsulation, we must create get method and set method. And Flexible the programmer can change one part of the code without affecting other parts. Due to the increased security of data.”
GOOD LUCK!!!!!!
References