Courses of Aliyun University:Scala complete self-study manual

Course Introduction:

Scala is a multiparadigm programming language, a Java-like programming language designed to implement a scalable language and integrate features of object-oriented and functional programming.

Scala has several key features that illustrate its object-oriented nature. For example, every value in Scala is an object, including basic data types (that is, booleans, numbers, and so on), as well as functions. In addition, classes can be subclassed, and Scala provides mixin-based composition.

Scala has a broader sense of class reuse than languages that only support single inheritance. Scala allows you to reuse “the definition of a new member in a class (that is, the difference from its parent)” when defining new classes. Scala calls this mixin class composition.

Scala also contains several key concepts for functional languages, It includes higher-order Function, Currying, Nested Function, Sequence Comprehensions, and so on.

Scala is statically typed, which allows for generic classes, inner classes, and even Polymorphic methods. It’s also worth noting that Scala is specifically designed to compete with Java and Java. NET interoperability. The current version of Scala is not available. NET (although -_b was available in the previous version), but it is planned to be available in the future. NET.

Scala interoperates with Java. It uses the scalac compiler to compile source files into Java class files (that is, bytecode running on the JVM). You can call all Java libraries from Scala, and you can call Scala code from Java applications.

Getting started: Scala complete self-study manual

Home page: Ali Yun University