- 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.
- Learning Microsoft Windows Server 2012 Dynamic Access Control
- 微服務(wù)設(shè)計(jì)(第2版)
- TensorFlow Lite移動(dòng)端深度學(xué)習(xí)
- C#程序設(shè)計(jì)實(shí)訓(xùn)指導(dǎo)書
- Mastering RabbitMQ
- Beginning Java Data Structures and Algorithms
- MySQL 8從入門到精通(視頻教學(xué)版)
- Java高并發(fā)核心編程(卷2):多線程、鎖、JMM、JUC、高并發(fā)設(shè)計(jì)模式
- Unity 2020 Mobile Game Development
- 學(xué)習(xí)正則表達(dá)式
- Angular開發(fā)入門與實(shí)戰(zhàn)
- Scratch趣味編程:陪孩子像搭積木一樣學(xué)編程
- OpenCV 3.0 Computer Vision with Java
- Scratch編程從入門到精通
- Enterprise Application Architecture with .NET Core