static void Main() { childClass a = new childClass(5); Console.WriteLine(a.num); //5 a.edit(6); Console.WriteLine(a.num); //6 }
private void button1_Click(object sender, EventArgs e) { myBassClass mB = new myBassClass("GG"); childClass cB = new childClass("CB", 12); }