CMAndroidBook
  • CMoney Android Book
  • 新人訓練
    • 工具篇
      • IDE
      • Firebase
      • Flurry
      • Postman
    • Coding Style
    • 架構
  • 基礎課程-預習
    • Android Studio
    • Kotlin練習
      • Google Code Labs
        • 1: Get started
        • 2: Kotlin basics
        • 3: Functions
        • 4: Object-oriented programming
        • 5.1: Extensions
      • 程式練習題
      • 參考
  • 建立第一個App
    • 目標
    • 建立專案
    • 專案結構
    • 手機開發者權限
    • IDE Git常用操作
      • 初始化Git
      • Commit
      • 新增、刪除、切換Branch
      • 合併Branch
      • 解衝突
  • Coroutine
    • Kotlin-Coroutine
      • 並發與並行
      • Overview
      • 概念
      • Scope和Context
      • Suspend修飾符
    • 習題
    • 參考資源
Powered by GitBook
On this page
  • Question 1
  • Question 2
  • Question 3
  • Question 4
  • Question 5

Was this helpful?

  1. 基礎課程-預習
  2. Kotlin練習
  3. Google Code Labs

4: Object-oriented programming

Question 1

Classes have a special method that serves as a blueprint for creating objects of that class. What is the method called?

Question 2

Which of the following statements about interfaces and abstract classes is NOT correct?

Question 3

Which of the following is NOT a Kotlin visibility modifier for properties, methods, etc.?

Question 4

Consider this data class:

data class Fish(val name: String, val species:String, val colors:String)

Which of the following is NOT valid code to create and destructure a Fish object?

Question 5

Let's say you own a zoo with lots of animals that all need to be taken care of. Which of the following would NOT be part of implementing caretaking?

Previous3: FunctionsNext5.1: Extensions

Last updated 4 years ago

Was this helpful?