在應用程式中取得使用者輸入內容:第 1 部分 返回課程 以下有關類別繼承的敘述何者正確? 類別繼承可重複使用程式碼,讓程式更易於維護。 父項類別的屬性和函式可供子項類別使用。 你可以定義專屬於子類別的其他屬性和函式。 你可以在子類別中覆寫父項類別的成員。 以上皆是 下列有關抽象類別的敘述何者正確? 請選取所有正確答案。 這些類別可以透過子類別加以擴充,也可以為該類別的抽象成員提供實作項目。 可對其所有的屬性和函式進行實作。 可能具備抽象屬性或抽象函式。 可將其執行個體化。 並未完全實作,所以無法執行個體化。 這些項目必須要以 open 關鍵字標示,才能加以擴充。 填空題 請輸入一或多個字來組成完整句子。 在建立類別的執行個體時,會呼叫 ___。 如何將屬性標記為只能用於目前的類別中? 使用 override 關鍵字。 使用 val 關鍵字。 使用 private 關鍵字。 使用 closed 關鍵字。 無法進行這個動作。 有關這個 XML 版面配置的敘述,請選出所有顯示於螢幕上的正確答案。(如果有需要,可以先將草稿畫在一張紙上。) <androidx.constraintlayout.widget.ConstraintLayout android:layout_width="match_parent" android:layout_height="match_parent"> <TextView android:id="@+id/textViewA" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="A" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" /> <TextView android:id="@+id/textViewB" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="B" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintTop_toTopOf="parent" /> </androidx.constraintlayout.widget.ConstraintLayout> 請選取所有正確答案。 TextView A 顯示為垂直堆疊於 TextView B 的上方。 TextView A 的起始邊緣會與上層檢視的起始邊緣對齊。 TextView B 的起始邊緣會與上層檢視的起始邊緣對齊。 TextView B 在父項之內為水平且垂直置中。 TextView A 和 TextView B 的頂部會與上層檢視的頂部對齊。 TextView A 的寬度會與父項 ConstraintLayout 的寬度相符。 提交答案 error_outline 計算測驗分數時出現錯誤。請再試一次。