聯繫我們

課程簡介

引言

Kotlin 基礎回顧

在 Kotlin 中使用進階函式

  • 使用巢狀函式重複利用 Kotlin 的功能
  • 使用中綴表示法呼叫 Kotlin 中的函式
  • 宣告 Kotlin 中的匿名函式
  • 使用内联修饰符提高 Kotlin 的效率
  • 在 Kotlin 中使用進階函式時,實現返回與本地返回
  • 實施尾遞迴以優化 Kotlin
  • 在 Kotlin 中使用運算子重載
  • 使用帶有接收者的 Lambda 來建立 Kotlin DSL 的約束
  • 在 Kotlin 中實例化
  • 在 Kotlin 中使用函數構造
    • 函式組合
    • 柯里化
    • 其他構建
  • Kotlin 進階功能方面的總結

探索 Kotlin 中的類別場景

  • 在 Kotlin 中實現欄位
  • 在 Kotlin 中使用 lateinit 修飾符
  • 了解 Kotlin 中的巢狀類別與內部類別
  • 使用伴生物件在 Kotlin 中定義"靜態方法"
  • 隱藏 Kotlin 中的類別建構子
  • 將 Kotlin 中的類別標記為密封
  • 在 Kotlin 中使用類型別名
  • Kotlin 類別進階功能的總結

實作 Kotlin 中的委派

  • 了解 Kotlin 中成員委派的概念
  • 將 Kotlin 中的成員函式委派給另一個類別
  • 透過屬性委派提高 Kotlin 程式碼重用的效率
  • 在 Kotlin 中使用內建委派屬性
  • 在 Kotlin 中為程式碼重用委派本地屬性
  • 在 Kotlin 類別中實作擴展屬性
  • Kotlin 委派各個方面的總結

深入理解 Kotlin 中的泛型

  • 理解泛型約束
  • 理解泛型中的變異與不變
  • 使用 "out" 修飾符在 Kotlin 的泛型中表達協變
  • 在 Kotlin 中表達反變
  • 探索 Kotlin 中的類型投影與星號投影
  • Kotlin 進階泛型的總結

Kotlin 中的元程式設計

  • 反射概述
  • 使用 Reflection API,在 Kotlin 中使用 Java 反射
  • 使用 Kotlin 的反射 API
  • 處理 Kotlin 中的類型擦除
  • 在 Kotlin 中使用重ified 泛型
  • 在 Kotlin 中定義自訂註解
  • Kotlin 元程式設計與內省技術的總結

進行 Kotlin 中的非同步程式設計

  • 理解非同步程式設計的問題
  • 在 Kotlin 中實現非同步程式設計和協程
  • 在 Kotlin 中使用協程實現 Async 和 Await
  • 在 Kotlin 中實現 Yield
  • 理解 Kotlin 中協程相對於響應式擴展的優勢
  • Kotlin 中協程的總結

總結與結論

最低要求

  • 具備 Kotlin 基礎知識

適用對象

  • 希望深入掌握 Kotlin 程式設計的開發人員
 21 小時

客戶評論 (7)

課程分類