Demo entry 5917808

java

   

Submitted by anonymous on Sep 02, 2016 at 11:05
Language: Java. Code size: 155 Bytes.

public class Car {
	
String color;// 成员变量
	int num; // 成员变量

	// 成员函数
	void run() {
		System.out.println(color + "的车,轮胎数:" + num + "个,跑起来了");
	}
}

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).