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

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.

主站蜘蛛池模板: 自贡市| 微山县| 温泉县| 河南省| 剑阁县| 佛山市| 炎陵县| 嵊泗县| 天祝| 武隆县| 宁化县| 浪卡子县| 宝山区| 宾川县| 珲春市| 南充市| 皮山县| 云阳县| 潮安县| 遵化市| 英德市| 剑川县| 和平县| 连山| 洪泽县| 阿拉善盟| 遂川县| 泌阳县| 泸定县| 昌吉市| 西华县| 社旗县| 安阳市| 汶上县| 徐水县| 同德县| 阳朔县| 康平县| 平陆县| 五峰| 蒲江县|