<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                我們已經在前面章節的一些代碼示例中看過變量字段了。變量字段保存值,是它們和大多數(非所有)屬性共有的特點: > We have already seen variable ?elds in several code examples of previous sections. Variable ?elds hold values, a characteristic which they share with most (but not all) properties: ~~~ class Main { static var member:String = "bar"; public static function main() { trace(member); member = "foo"; trace(member); } } ~~~ 從這里我們可以了解到關于變量的幾點: > We can learn from this that a variable 1. 有一個名稱(member) 2. 有一個類型(String) 3. 可能有一個常量值的初始化(“bar”) 4. 可能有訪問修飾符(第4.4節)(static) > 1. has a name (here: member), > 2. has a type (here: String), > 3. may have a constant initialization (here: "bar") and > 4. may have access modi?ers (4.4) (here: static) 例子首先輸出member的初始值,然后在輸出新的值之前設置它為 foo 。訪問修飾符的影響是在所有三種類之間共享,將在單獨的章節講解。 > The example ?rst prints the initialization value of member,then sets it to "foo" before printing its new value. The effect of access modi?ers is shared by all three class ?eld kinds and explained in a separate section. 可能注意到,顯式的類型并不是必須的,如果有一個初始化的值。這個情況下編譯器會推斷它為恰當的類型。 > It should be noted that the explicit type is not required if there is an initialization value. The compiler will infer (3.6) it in this case. ![](https://box.kancloud.cn/2016-07-30_579cc7f20c459.png)
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看