我想知道是否可以使用void返回类型的构造函数,如下例所示.
例如
class A { void A(){} //where A is constructor and for which return type is void public static void main(string arg[]){ A a = new A(); } }
java constructor
constructor ×1
java ×1