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

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.

主站蜘蛛池模板: 噶尔县| 孝昌县| 温宿县| 乳山市| 芜湖县| 洪江市| 桃园市| 巴彦县| 天气| 厦门市| 上栗县| 开阳县| 甘谷县| 西城区| 西盟| 丽水市| 铜鼓县| 浠水县| 兴宁市| 广丰县| 义马市| 垫江县| 扶沟县| 蒙城县| 新干县| 突泉县| 栾川县| 维西| 福海县| 新龙县| 濉溪县| 乌兰察布市| 临洮县| 华坪县| 临泉县| 阿克| 德格县| 涞水县| 浠水县| 吉木萨尔县| 铅山县|