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

Summary

This chapter introduced you to the core of object-oriented programming—the creation of classes and those operations which can be performed with them, such as extending them, using them to override parts of the code, or creating local instances.

The examples provided here showed you the importance of creating classes to better structure your code and improve it economically. If there are several classes within a specific context, it is very likely that they will have common characteristics that could be described in a parent class or even an interface.

A part of the chapter was dedicated to operations done with the compiler. As a developer, you may want to inform others when certain parts of your code will be deprecated, or whether a method from a specific class has been overridden. Annotating code is a good technique for maintaining communication with others. You also saw how to turn off possible warnings coming from annotations that occurred during development.

Finally, we discussed the process of documentation. This is relevant when sharing code or passing it over to other people. In the next chapter, we will take a look at Java collections framework which will simplify your dealings with complex data structures.

主站蜘蛛池模板: 珲春市| 滁州市| 洪泽县| 常熟市| 云龙县| 济南市| 长寿区| 东宁县| 山东| 鹤山市| 灵武市| 顺义区| 咸阳市| 横峰县| 尼勒克县| 萍乡市| 宾阳县| 横山县| 乌拉特前旗| 渝北区| 洮南市| 韶关市| 惠东县| 荃湾区| 丰城市| 清涧县| 当阳市| 黑山县| 越西县| 思茅市| 鄯善县| 黄大仙区| 龙陵县| 长寿区| 谷城县| 平阳县| 故城县| 温宿县| 台山市| 大洼县| 通海县|