- The Java Workshop
- David Cuartielles Andreas G?ransson Eric Foster Johnson
- 203字
- 2021-06-11 13:05:23
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.
- 程序員面試筆試寶典(第3版)
- R語言經典實例(原書第2版)
- 圖解Java數據結構與算法(微課視頻版)
- 認識編程:以Python語言講透編程的本質
- HTML5+CSS3基礎開發教程(第2版)
- Java 9 Programming Blueprints
- Puppet:Mastering Infrastructure Automation
- Get Your Hands Dirty on Clean Architecture
- Mastering Leap Motion
- Java設計模式深入研究
- ASP.NET Core 2 High Performance(Second Edition)
- 系統分析師UML用例實戰
- MATLAB計算機視覺實戰
- Web程序設計與架構
- Learn C Programming