Sponsored Link •
|
Advertisement
|
Advertisement
|
This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.
Message:
Here is the code The class simply keeps the track of number of objects created by a static variable and after that an exception is thrown in a constructor class a{ a() throws InterruptedException{ void putdata(){ class one_object{ Thanks > is there a way we can defuine a class blueprint in such a way that in our main method we are not able to create objects iof the class after a particular no.(e.g. 10)i.e after instantiating 10th object the compiler will complain to create the 11th object.
Replies:
|
Sponsored Links
|