C# .NET - Program for creating instance of class

Asked By Lata on 30-Apr-13 07:56 AM
Dear all,

       I am not getting to write for for following condition pls help me out from this.

  "THE CLASS SHOULD HAVE 5 INSTANCE WHILE GOING FOR CREATION OF 6TH INSTANCE THE PROGRAM GET ERROR MESSAGE"



Thanks
Lata
Robbe Morris replied to Lata on 30-Apr-13 09:06 AM
var myclass =new MyClass();

Your homework is asking you to put this in a loop and throw an exception on the sixth attempt.  We do not normally answer homework or school questions here unless you post your own code that shows you've at least tried to answer the question.  That is what school is for.
Jan Muhammad Kalwar replied to Lata on 02-May-13 12:56 AM

it s restricted to create 6th instance of Class.