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

Summary

So, let's summarize what we have learned in this chapter. We started with the most basic val and var variable constructs. Then, we learned how we can write literals, and what data types we have in Scala. We then studied the interesting class hierarchy in Scala, in which we talked about unified class hierarchy and value and reference type classes. Later, we learned one of the most important concepts of Type Inference in Scala. After that, we started with operators, and their precedence. We learned how wrapper classes provide all the richness of functionalities to us as programmers. Finally, we learned a simple, but useful way of processing our String literals using interpolators. Now, it's clear that with some more practice of all these constructs that we've learned we'll be ready to go further and learn about some logical and looping constructs that shape up our programs.

In the next chapter, we'll discuss some looping constructs in Scala, logical constructs, and an introduction to pattern matching and how we can control our program flow using pattern matching and enabling us to strengthen our programs on logical ground.

主站蜘蛛池模板: 新泰市| 加查县| 筠连县| 美姑县| 武陟县| 曲麻莱县| 登封市| 龙陵县| 耿马| 长汀县| 马公市| 睢宁县| 宜章县| 佛山市| 嘉峪关市| 克山县| 永春县| 广丰县| 禄丰县| 韩城市| 宁强县| 托克逊县| 汤原县| 平湖市| 长治县| 股票| 涿鹿县| 奈曼旗| 海城市| 卓资县| 焉耆| 凤台县| 南康市| 扎兰屯市| 丰台区| 宁明县| 邵武市| 民丰县| 阳春市| 江西省| 聂拉木县|