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

Summary

So, in this chapter, we covered the main goals of the Kotlin programming language.

We went through the variables that are defined, such as val, var, null safety, and type inference. We observed how program flow is controlled by commands such as if, when, for, and while, and we also took a look at the different keywords used to define classes and interfaces: class, interface, data, and abstract class. We learned how to construct new classes and how we inherit from interfaces and implement classes. And finally, we learned what design patterns are good for, and why we need them in Kotlin. 

In the next chapter, we'll start discussing the first of the three design pattern families: creation patterns.

主站蜘蛛池模板: 饶河县| 突泉县| 澄迈县| 泾阳县| 贞丰县| 万年县| 册亨县| 巴林右旗| 体育| 海南省| 海宁市| 东兰县| 通河县| 榕江县| 霸州市| 广河县| 青州市| 常州市| 大埔县| 泽州县| 象山县| 南澳县| 苍溪县| 静海县| 新和县| 青浦区| 黄梅县| 富蕴县| 伊川县| 车致| 金湖县| 阿拉善盟| 卫辉市| 滨海县| 横峰县| 肥西县| 闽清县| 信阳市| 惠州市| 汝南县| 肥乡县|