![](https://static.youtibao.com/asksite/comm/h5/images/m_q_title.png)
如下代码定义了一个类Test:class Test {private int y;Test (int x) { y:x; }}现在为Test 类生成
如下代码定义了一个类Test: class Test { private int y; Test (int x) { y:x; } }现在为Test 类生成一个对象,正确的语句是()。
A.Test t = new Test();
B.Test t=new Test(10, 20);
C.Test t;
D.Test t=new Test(10);
![](https://static.youtibao.com/asksite/comm/h5/images/solist_ts.png)