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

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.

主站蜘蛛池模板: 鲁甸县| 盘锦市| 巴里| 吉木萨尔县| 新疆| 于都县| 南川市| 海原县| 天峨县| 巴塘县| 襄垣县| 拉孜县| 小金县| 蛟河市| 正镶白旗| 九龙坡区| 珲春市| 四会市| 马尔康县| 武宣县| 揭阳市| 犍为县| 东山县| 抚远县| 鄂温| 外汇| 万安县| 休宁县| 潼关县| 山西省| 靖西县| 上虞市| 永州市| 双流县| 焉耆| 廊坊市| 梓潼县| 纳雍县| 姜堰市| 江陵县| 江阴市|