`

the static method cannot hide instance method from object

阅读更多
public class CloneInit implements Cloneable
{

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}
	public   static CloneInit clone()
	{
		return null;
	}

}


如果父类中方法时proctected的  那么子类覆盖是 方法不能使static

具体原因还在研究中........
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics