如果有以下程序片段 public class Some{ private final int x; public Some(){} public Some( int x){ this .x = x; } } 以下描述正确的是
A.
编译失败
B.
利用new Some(10)创建对象后,对象成员x值为10
C.
利用new Some(10)创建对象后,对象成员x值为0
D.
利用Some s = new Some(10)后,可以使用s.x取得值
拍照语音搜题,微信中搜索"皮皮学"使用
参考答案:
参考解析:
知识点:
皮皮学刷刷变学霸
举一反三
【简答题】阅读理解。 My favorite great book is The Adventure of Tom Sawyer by Mark Twain. Tom lives with his aunt Polly in a quiet street of St. Petersburg, Missouri. He's a lively and clever young boy, and he finds...