试题详情
- 单项选择题 Given: Which statement is true?()
A、The code will compile without changes.
B、The code will compile if public Tree() { Plant(); } is added to the Tree class.
C、The code will compile if public Plant() { Tree(); } is added to the Plant class.
D、The code will compile if public Plant() { this("fern"); } is added to the Plant class.
E、The code will compile if public Plant() { Plant("fern"); } is added to the Plant class.
- D
关注下方微信公众号,在线模考后查看
热门试题