Search Header Logo

繼承 (Inheritance)

Authored by 徐leo 徐leo

Computers

University

繼承 (Inheritance)
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

請問語法 : class Circle extends Cylinder { },是指?

Circle繼承Cylinder

Cylinder 繼承Circle

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

請問語法 : class Circle extends Cylinder { },下列何者有錯?

Cylinder 是 Superclass

Circle 是 Subclass

Cylinder 是 parent Class

Cylinder 是 child Class

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

看到子類別中呼叫 super ( ) 的敘述句,代表?

子類別有一個super的方法

子類別呼叫父類別的建構方式

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

使用存取控制符 Private 的變數,只能在以下何種環境使用?

同一class本身

所屬Subclass

同一Package的class

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

若子類別覺得父類別現有的方法不適用,可以重新改寫,稱為?

overloading

overriding

Inheritance

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

如果子類別的方法與父類別同名,但方法中定義的參數型別或個數不同,稱作?

Overriding

Overloading

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

若子類別出現 super.i 語法,代表?

使用子類別的成員變數 i

使用父類別的成員變數 i

使用父類別的成員方法 super()

呼叫父類別建構式

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?