试题详情

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

Atype No

Bheavy owner

Ctype owner price

Dtype price