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

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.

主站蜘蛛池模板: 克山县| 伊宁市| 永新县| 尚义县| 宣城市| 满洲里市| 七台河市| 巴塘县| 云安县| 宝丰县| 九台市| 宁夏| 迭部县| 绩溪县| 南郑县| 大余县| 富顺县| 盘山县| 久治县| 漠河县| 镇雄县| 临湘市| 宜州市| 浮山县| 乐昌市| 广宗县| 社旗县| 阿合奇县| 杭州市| 林州市| 封丘县| 鄯善县| 酉阳| 乌鲁木齐市| 库伦旗| 敦化市| 孝义市| 新津县| 安康市| 额济纳旗| 高碑店市|