- Java 9 with JShell
- Gastón C. Hillar
- 107字
- 2021-07-09 18:46:50
Chapter 4. Encapsulation of Data
In this chapter, we will learn the different members of a class in Java 9 and how they are reflected in members of the instances generated from a class. We will work with instance fields, class fields, setters, getters, instance methods, and class methods. We will:
- Understand the members that compose a class in Java 9
- Declare immutable fields
- Work with setters and getters
- Understand access modifiers in Java 9
- Combine setters, getters, and a related field
- Transform values with setters and getters
- Use static fields and static methods to create values shared by all the instances of a class
推薦閱讀
- C++程序設計教程
- 手機安全和可信應用開發指南:TrustZone與OP-TEE技術詳解
- Android和PHP開發最佳實踐(第2版)
- Android項目開發入門教程
- MATLAB圖像處理超級學習手冊
- Vue.js 3.0源碼解析(微課視頻版)
- aelf區塊鏈應用架構指南
- 深入淺出Serverless:技術原理與應用實踐
- 精通Python自動化編程
- 劍指大數據:企業級數據倉庫項目實戰(在線教育版)
- Spring Security Essentials
- Unity 2018 Augmented Reality Projects
- 軟件工程基礎與實訓教程
- ASP.NET 4.0 Web程序設計
- Get Your Hands Dirty on Clean Architecture