static void Main() { //Console.WriteLine("Hello, World!"); Klass MyKlass = new Klass(); // send this data to the new object(class) MyKlass.NewData = "there and back!"; Console.WriteLine(MyKlass.passItOn()); }
static void Main() { //Console.WriteLine("Hello, World!"); Klass MyKlass = new Klass(); // send this data to the new object(class) MyKlass.NewData = "there and back!"; Console.WriteLine(MyKlass.passItOn()); }