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

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.

主站蜘蛛池模板: 湖南省| 湘潭市| 两当县| 舒城县| 平谷区| 阿鲁科尔沁旗| 化州市| 古蔺县| 吴堡县| 德昌县| 融水| 平遥县| 泰宁县| 太仆寺旗| 东乡| 仪征市| 新化县| 屯门区| 青龙| 台南市| 阳原县| 青神县| 卢湾区| 从化市| 太原市| 同德县| 淮安市| 苏尼特右旗| 沙坪坝区| 延川县| 瑞安市| 东阳市| 留坝县| 三门峡市| 平湖市| 方城县| 子长县| 留坝县| 丹巴县| 南充市| 夏邑县|