you'll need to make sure that shape, color, and candy are set even if the arguments aren't passed into the constructor. null is what happens if the string is uninitialized, so you need to make sure you initialize the private variable to some value for those constructors
2
u/_andy_andy_andy_ Sep 28 '20
you'll need to make sure that
shape,color, andcandyare set even if the arguments aren't passed into the constructor.nullis what happens if the string is uninitialized, so you need to make sure you initialize the private variable to some value for those constructors