Hi all consider the following code snippets /*****code snippet1******/
/***end of code snippet1****/
/***end of code snippet2**/ the first snippet works fine it doesn't complain about the absence of explicit default constructor declaration but the second code complains!! please can anyone explain me the difference.. thank you malathi
Joined: Jan 09, 2001
Hi, Both fail for me with compile error: Missing default constructor! Manfred.
Joined: Sep 08, 2000
Hi Malathi. Have you compiled the code ? Because according to my understanding both code snippet should fail as mentioned by Manfred.
Hi malathi, I think u did a mistake in your question itself, if in code snippet1 if you specify a return type such as void for method test[ in which case it wouldn't be a constructor anymore] then your thinking is right, if you dont mean it then they both are same snippets. Anil. /***** http://www.anilbachi.8m.comscjp resources*****/////