- Design Patterns and Best Practices in Java
- Kamalmeet Singh Adrian Ianculescu LUCIAN PAUL TORJE
- 120字
- 2021-06-25 20:52:27
Encapsulation
Encapsulation basically means the binding of attributes and behaviors. The idea is to keep the properties and behavior of an object in one place, so that it is easy to maintain and extend. Encapsulation also provides a mechanism to hide unnecessary details from the user. In Java, we can provide access specifiers to methods and attributes to manage what is visible to a user of the class, and what is hidden.
Encapsulation is one of the fundamental principles of object-oriented languages. It helps in the decoupling of different modules. Decoupled modules can be developed and maintained more or less independently. The technique through which decoupled modules/classes/code are changed internally without affecting their external exposed behavior is called code refactoring.
- C語言程序設(shè)計(jì)(第2 版)
- Angular UI Development with PrimeNG
- Java 9 Programming Blueprints
- Responsive Web Design with HTML5 and CSS3
- Java程序設(shè)計(jì)與計(jì)算思維
- Building a Recommendation Engine with Scala
- 深入淺出React和Redux
- RealSenseTM互動(dòng)開發(fā)實(shí)戰(zhàn)
- 持續(xù)輕量級Java EE開發(fā):編寫可測試的代碼
- ASP.NET程序開發(fā)范例寶典
- 用案例學(xué)Java Web整合開發(fā)
- Emgu CV Essentials
- Android Studio Cookbook
- C陷阱與缺陷
- Kotlin語言實(shí)例精解