public void student和public student的区别
public void student(){} 是一个方法的声明,表示一个名为student的无返回值的方法。
而public student(){} 是一个类的声明,表示一个名为student的公共类。
两者的区别在于,前者是一个方法的声明,后者是一个类的声明。
原文地址: http://www.cveoy.top/t/topic/iDej 著作权归作者所有。请勿转载和采集!
安全问答是一个知识全球问答,包含丰富的问答知识
public void student(){} 是一个方法的声明,表示一个名为student的无返回值的方法。
而public student(){} 是一个类的声明,表示一个名为student的公共类。
两者的区别在于,前者是一个方法的声明,后者是一个类的声明。
原文地址: http://www.cveoy.top/t/topic/iDej 著作权归作者所有。请勿转载和采集!