- 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
推薦閱讀
- Advanced Quantitative Finance with C++
- JBoss Weld CDI for Java Platform
- Hands-On Data Structures and Algorithms with JavaScript
- jQuery從入門到精通 (軟件開發(fā)視頻大講堂)
- 薛定宇教授大講堂(卷Ⅳ):MATLAB最優(yōu)化計(jì)算
- Java:Data Science Made Easy
- CouchDB and PHP Web Development Beginner’s Guide
- Learning ELK Stack
- Node.js全程實(shí)例
- 從Java到Web程序設(shè)計(jì)教程
- Android系統(tǒng)原理及開發(fā)要點(diǎn)詳解
- Python語言實(shí)用教程
- Learning Jakarta Struts 1.2: a concise and practical tutorial
- Google Adsense優(yōu)化實(shí)戰(zhàn)
- 大話代碼架構(gòu):項(xiàng)目實(shí)戰(zhàn)版