Chapter 5. Basic Object-Oriented Programming in scala.
第5章Scala基础面向对象编程。
Have fun with that, and let me know if you find work programming in Scala!
愿您从中找到乐趣,如果发现了用Scala编程的工作,别忘了告诉我!
Programming in Scala is tantalizingly familiar and different at the same time.
Scala中的编程如此地熟悉,同时又如此地不同。
We'll discuss these exceptions in Chapter 5, Basic Object-Oriented Programming in Scala.
我们会在《第5章-Scala基础面向对象编程》中讨论这些例外。
We'll explore this class in greater detail in Chapter 5, Basic Object-Oriented Programming in Scala.
我们会在《第5章-Scala基础面向对象编程》中来探索这个类的更多细节。
We’ll discuss abstract types in more detail in Chapter 5, Basic Object-Oriented Programming in Scala.
我们会在《第5章,Scala基础面向对象编程》中详细讨论抽象类型。
We will examine Scala's support for pattern matching in more detail in Chapter 8, Functional Programming in Scala.
我们会在《第8章-scala函数式编程》了解更多Scala对于模式匹配支持的细节。
We'll see how in the section called "Overriding Abstract Types" in Chapter 6, Advanced Object-Oriented Programming in Scala.
我们会在《第6章-Scala高级面向对象编程》中的“重写抽象类型”章节看到如何做到这一点。
We'll discuss overriding abstract and concrete members in detail in Chapter 6, Advanced Object-Oriented Programming in Scala.
我们会在《第6章-Scala高级面向对象编程》中详细讨论重写抽象和具体成员。
We'll explore the visibility rules in the section called "visibility rules" in Chapter 5, Basic Object-Oriented Programming in Scala.
我们会在《第5章-Scala基础面向对象编程》的“可见性规则”章节来探索可见性规则。
This is required for currying methods, which we'll discuss in the section called "currying" in Chapter 8, Functional Programming in Scala.
这是级联方法(currying methods)所需要的。我们会在《第8章- scala函数式编程》中的“级联(currying)章节讨论它。”
See the section called "Overriding Members of Classes and Traits" in Chapter 6, Advanced Object-Oriented Programming in Scala for more details.
参见《第6章-Scala高级面向对象编程》的“重写Classes和Traits的成员”章节获取更多细节。
We will discuss the visibility rules and keywords in the section called "visibility rules" in Chapter 5, Basic Object-Oriented Programming in Scala.
我们会在《第5章-Scala面向对象编程》中的“可见度规则”章节来讨论可见度的规则和对应的关键字。
You can use implicit arguments, which we will discuss in the section called “Implicit Function Parameters” in Chapter 8, Functional Programming in Scala.
你可以使用隐式参数,我们会在《第8章 -Scala函数式编程》的“隐式函数参数”章节讨论。
We’ll see how to define auxiliary constructors in the section called “Constructors in Scala” in Chapter 5, Basic Object-Oriented Programming in Scala.
在《第5章 -Scala 的基本面向对象编程》的“Scala 的构造函数”章节中,我们会看到如何定义辅助的构造函数。
We’ll revisit these questions in the section called “Overriding Members of Classes and Traits” in Chapter 6, Advanced Object-Oriented Programming In Scala.
我们会在《第6章- Scala高级面向对象编程》的”重写类和Traits 的成员“重温这个问题。
The class and object can have the same name, as we will see in the section called "Companion Objects" in Chapter 6, Advanced Object-Oriented Programming in Scala.
类和object可以使用同样的名字,就像我们会在《第6章-Scala高级面向对象编程》的“伴随实体”章节中看到的那样。
Function literals and the related concept of a closure are discussed in the section called "Function literals and Closures" in Chapter 8, Functional Programming in Scala.
字面函数和闭包相关的概念会在《第8章-scala函数式编程》的“字面函数和闭包”章节中被讨论。
We'll discuss Scala List's more in the section called "the Scala Type Hierarchy" in Chapter 7, the Scala Object System and also in Chapter 8, Functional Programming in Scala.
我们会在《第7章-Scala对象系统》的“scala类型结构”章节和《第8章- scala函数式编程》中讨论更多有关List的细节。
We'll see another useful example of named and default arguments when we discuss case classes in the section called "case classes" in Chapter 6, Advanced Object-Oriented Programming in Scala.
我们会在《第6章-Scala高级面向对象编程》中的“CaseClass(案例类)”中看到另外一个使用命名参数和默认参数的例子。
We’ll discuss this more in the section called “When Accessor Methods and Fields Are Indistinguishable: The Uniform Access Principle” in Chapter 6, Advanced Object-Oriented Programming In Scala.
我们会在《第6章 -Scala高级面向对象编程》的“当方法和字段存取器无法区分时:唯一存取的原则”章节来更多的讨论这一点。
Functional programming in Scala will give you some new design constructs and ideas, as well as built-in constructs that make programming certain scenarios (such as concurrency) much, much easier.
Scala中的函数编程将提供一些新的设计结构和理念以及一些内置构造,它们使某些场景(例如并发性)的编程变得非常简单。
Scala regards a method with the equals sign before the body as a function definition and a function always returns a value in functional programming.
Scala把主体之前的部分包含等于号作为函数定义,而一个函数在函数式编程中永远都有返回值。
So, like a lot of people, I've been caught up in the excitement about concurrent programming with functional languages like Erlang and Scala.
因此,像大多数人一样,我钟爱使用 Erlang和 Scala等函数语言进行并发编程。
In the next chapter, we explore how the fundamentals of object-oriented programming work in Scala.
在下一章,我们会探索Scala编程中的面向对象基础。
This article uses the Scala programming language. Version 2.6.1 is used in the article.
本文使用了Scala编程语言,其版本为2.6.1。
Regexes in Scala should contain no surprises if you've used them in other programming languages.
如果已经在其它编程语言中使用正则表达式,那么Scala的应该不会让你感觉到惊讶。
Wischusen posted the details steps and code examples on about Scala programming. He explained in details about Scala actor.
Wischusen给出了Scala编程的细节步骤及代码样例。
Scala is a general purpose programming language designed to express common programming patterns in a concise, elegant, and type-safe way.
Scala是一种通用编程语言,它以简洁、优雅且类型安全的方式表达常用的编程模式。
Martin is the creator of the Scala programming language, and a professor in the programming research group at EPFL, the leading technical university in Switzerland.
Martin是Scala编程语言的创始人,也是EPFL(瑞士领先的技术大学)编程研究组的教授。
应用推荐