作者godfat (godfat 真常)
看板java
标题Re: [问题] 检查保留字的程式
时间Wed Apr 5 16:56:40 2006
※ 引述《[email protected] (foolish)》之铭言:
: 这是什麽鬼, 为什麽有二个同样名字的class
: 这不是java啊...
哪里有一样的名字?
一个是 test, 一个是 text
: > class text(){
这边多括号吧…
C++ 也不能这样写的
btw, 有时候我也会把 test 跟 text 搞混
结论是以後不要同时使用这两个名字…
有一定的机率不会通过检定 :Q
edited:
刚刚仔细看了一下,还有 c'tor 不能是 static 吧?
static 初始化应该写成 static{
}
--
Nobody can take anything away from him.
Nor can anyone give anything to him.
What came from the sea,
has returned to the sea.
Chrono Cross
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 220.132.128.238
※ 编辑: godfat 来自: 220.132.128.238 (04/05 16:58)