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

  • Swift 2 Design Patterns
  • Julien Lange
  • 206字
  • 2021-07-09 21:25:41

Conventions

In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.

Code words in text as are shown as follows: "AbstractExpression: It defines an interpret() method that is common to all node in the abstract syntax tree."

A block of code is set as follows:

class WalkMoveStrategy:IMoveStrategy{
  func performMove() {
    print("I am walking")
  }
}

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

class WalkMoveStrategy:IMoveStrategy{
  func performMove() {
 print("I am walking")
  }
}

Any console output is written as follows:

Printing checkPoint....
Level: 0 Weapon: gun Points: 1200 
Level: 1 Weapon: tommy gun Points: 2250 
Level: 2 Weapon: bazooka Points: 2400 
Level: 4 Weapon: knife Points: 3000 
Total Points: 8850

New terms and important words are shown in bold. Words that you see on the screen, for example, in menus or dialog boxes, appear in the text like this: "Click on the Show the Test navigator button on the left-hand side."

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

主站蜘蛛池模板: 黑龙江省| 延长县| 阿鲁科尔沁旗| 六盘水市| 定结县| 东乡族自治县| 涞源县| 延庆县| 长武县| 德化县| 石嘴山市| 栾川县| 阿尔山市| 安仁县| 安溪县| 老河口市| 策勒县| 嘉义市| 射洪县| 红河县| 微博| 沛县| 固镇县| 虎林市| 沂南县| 灵武市| 昌黎县| 本溪| 托克逊县| 赤城县| 安溪县| 新民市| 涟水县| 鱼台县| 大余县| 商城县| 望城县| 抚顺县| 疏附县| 华坪县| 江阴市|