在应用中获取用户输入:第 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 系统对测验进行评分时出现错误。请重试。