java吧 关注:1,232,685贴子:12,697,930
  • 0回复贴,共1

大神路过帮忙看看!

只看楼主收藏回复

class Car
{
private int num;private String color;
Car(num,color)
{
this.num = num;
this.color = color;
}
void run()
{
System.out.print(num+"..."+color);
}
}
class Xing
{
public static void main(String[] args)
{
Car c1 = new Car(3,"red");
c1.run();
}
}这个代码哪里有问题呀


IP属地:陕西来自Android客户端1楼2015-12-25 22:26回复