數(shù)組沒有l(wèi)ength這個方法,有l(wèi)ength的屬性。String有l(wèi)ength這個方法。
在下面的例子里 當使用new B創(chuàng)建B的實例時,產生什么輸出?
x=1,y=0; x=1,y=-1。