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

  • 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
主站蜘蛛池模板: 东乡族自治县| 普格县| 通辽市| 吴桥县| 松潘县| 安宁市| 新乐市| 铜山县| 茌平县| 延吉市| 双流县| 石屏县| 科尔| 镇赉县| 咸宁市| 曲松县| 北宁市| 上饶市| 海南省| 柯坪县| 建宁县| 曲阜市| 岚皋县| 平陆县| 方正县| 固阳县| 谷城县| 阜南县| 高要市| 固阳县| 临洮县| 萨嘎县| 武隆县| 石门县| 无为县| 景泰县| 商丘市| 吉林市| 错那县| 克山县| 罗江县|