下列类定义代码,当用来声明对象car,并用Carcar=newCar();实例化后,可以通过car对象直接赋值的字段是( )。 publicclassCar { public string type; string No; private int heavy; double speed; protected string owner; public string price; private string color; }
A.type No
B.heavy owner
C.type owner price
D.type price
正确答案是D