- Mastering JavaScript Object-Oriented Programming
- Andrea Chiarelli
- 73字
- 2021-07-14 11:24:31
Chapter 3. Working with Encapsulation and Information Hiding
In this chapter, we will explore the relationship between encapsulation and information hiding, and we will see the different approaches to implement the visibility and accessibility of members of a JavaScript object. The following topics will be addressed in this chapter:
- Public and private properties
- Scope and closure
- Techniques to protect private members
- Getters, setters, and property descriptors
- Property definition in ES6 classes
推薦閱讀
- Node.js 10實戰
- C++ Builder 6.0下OpenGL編程技術
- Practical Data Science Cookbook(Second Edition)
- 神經網絡編程實戰:Java語言實現(原書第2版)
- 基于Java技術的Web應用開發
- 精通網絡視頻核心開發技術
- Linux命令行與shell腳本編程大全(第4版)
- Android開發案例教程與項目實戰(在線實驗+在線自測)
- Python Web數據分析可視化:基于Django框架的開發實戰
- Hands-On Kubernetes on Windows
- Oracle 12c從入門到精通(視頻教學超值版)
- Ext JS 4 Plugin and Extension Development
- 征服C指針(第2版)
- Java 7 Concurrency Cookbook
- jQuery權威指南