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

Summary

In this chapter, you learned how to recognize real-world elements and translate them into the different components of the object-oriented paradigm supported in Java 9: classes, fields, methods, and instances. You understood that the classes represent blueprints or templates to generate the objects, also known as instances.

We designed a few classes with fields and methods that represent blueprints for real-life objects, specifically, 2D shapes. Then, we improved the initial design by taking advantage of the power of abstraction and specialized different classes. We generated many versions of the initial UML diagram as we added superclasses and subclasses. We understood the application domain and we made changes to the original design as our knowledge increased and we realized we were able to generalize behavior.

Now that you have learned some of the basics of the object-oriented paradigm, we are ready to start creating classes and instances in Java 9 with JShell, which is what we are going to discuss in the next chapter. It is time to start object-oriented coding!

主站蜘蛛池模板: 五寨县| 义马市| 蓬莱市| 阿图什市| 瑞金市| 工布江达县| 承德县| 垣曲县| 辽宁省| 来凤县| 新野县| 泗洪县| 伊春市| 偏关县| 罗江县| 岳阳县| 东宁县| 米泉市| 新营市| 大足县| 绥芬河市| 台东市| 唐河县| 英超| 肥城市| 青冈县| 中宁县| 鹿邑县| 福海县| 乳源| 文登市| 万宁市| 涞水县| 长沙县| 武威市| 方正县| 阳新县| 平安县| 二连浩特市| 洪江市| 申扎县|