Skip to Content
0
Former Member
Oct 30, 2007 at 12:13 PM

constructor

30 Views

i have created a class which has a constructor which imports the value of a and b.

for this particular class iam creating an object obj1 by exporting the values for a and b to the constructor.

then iam creating an object called obj1 and obj2 without passing any parameters. because these objects should not execute that constructor rather it should call all the other methods.

for this program it shows an error message saying " the obligatory parameter A has no value assigned to it" at the lace where iam using create object obj2 and obj3.

can anyone help me what has to be done to resolve this.

thanks,

Phyrose.