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

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.

主站蜘蛛池模板: 朔州市| 云和县| 嵩明县| 扶绥县| 建始县| 三门县| 囊谦县| 鹤壁市| 兰州市| 江阴市| 孟州市| 丹江口市| 安西县| 康保县| 通城县| 班戈县| 抚宁县| 颍上县| 巫山县| 阿坝| 盘锦市| 云和县| 临西县| 澎湖县| 都安| 花莲县| 乡城县| 青川县| 宜兴市| 安康市| 邻水| 宁远县| 桓仁| 深泽县| 六枝特区| 灵山县| 宁陵县| 志丹县| 大方县| 伊金霍洛旗| 于田县|