Code builds fine but compiler says I tried to use bject link w/o providing an instance.Code:public class ColorGenetics { public static hk1Class jw; public static linkedClass link; static void Main(string[] args) { var jw = new hk1Class(); var link = new linkedClass(); program(); }
Class linkedClass has an instance of Class hk1Class set to var jw1.
I had linkedClass useing the same var jw for the object instance. I changed it to jw1 thinking that would clear it up and it didn't.
How do I correct it?