官术网_书友最值得收藏!

  • 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
主站蜘蛛池模板: 泸州市| 定结县| 越西县| 犍为县| 重庆市| 大姚县| 板桥市| 酉阳| 上林县| 阳曲县| 南陵县| 拉萨市| 南澳县| 黎城县| 雷山县| 翁牛特旗| 库车县| 鱼台县| 辽源市| 罗甸县| 沧源| 南召县| 永清县| 永嘉县| 牙克石市| 高清| 邹城市| 正宁县| 松江区| 淄博市| 台南市| 兴国县| 榕江县| 漾濞| 聂荣县| 肇庆市| 浠水县| 吉水县| 托克逊县| 苗栗市| 上杭县|