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

Summary

In this chapter, you learned about an object's life cycle. You also learned how object constructors work. We declared our first simple class to generate a blueprint for objects. We understood how types, variables, classes, constructors, instances, and garbage collection work with live examples in JShell.

Now that you have learned to start creating classes and instances, we are ready to share, protect, use, and hide data with the data encapsulation features included in Java 9, which is what we are going to discuss in the next chapter.

主站蜘蛛池模板: 吴桥县| 迭部县| 封丘县| 渝中区| 金阳县| 樟树市| 福海县| 中牟县| 盐山县| 弥勒县| 罗田县| 秦安县| 兴隆县| 城固县| 浮山县| 卓资县| 宁德市| 米林县| 镇宁| 金寨县| 射洪县| 湟源县| 高雄县| 南陵县| 永定县| 铅山县| 乐清市| 乐平市| 磐石市| 兴和县| 吉首市| 洪湖市| 开化县| 哈密市| 文昌市| 修武县| 铜山县| 山阴县| 新绛县| 丰台区| 黔东|