考试
2021-02-25 12:23:51

(单选题)Given:Which statement is

题目描述

AThe code will compile without changes.

BThe code will compile if public Tree() { Plant(); } is added to the Tree class.

CThe code will compile if public Plant() { Tree(); } is added to the Plant class.

DThe code will compile if public Plant() { this("fern"); } is added to the Plant class.

EThe code will compile if public Plant() { Plant("fern"); } is added to the Plant class.

答案解析

[db:答案解析]

D

加载中...
AI正在思考中,请稍候...