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

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
主站蜘蛛池模板: 玉屏| 汝城县| 重庆市| 凌云县| 随州市| 上虞市| 河西区| 易门县| 高雄市| 红安县| 忻州市| 云林县| 贵定县| 安福县| 乐亭县| 雅安市| 霍林郭勒市| 房山区| 贡觉县| 曲松县| 渭源县| 东台市| 大姚县| 黔南| 太仆寺旗| 武穴市| 壤塘县| 鲜城| 德惠市| 江山市| 旌德县| 永修县| 菏泽市| 石河子市| 靖边县| 孟州市| 高密市| 淄博市| 怀化市| 内乡县| 白山市|