public Parent() { this.c1 = new child1(); this.c2 = new child2(); this.c3 = new child3(); this.c4 = new child4(); this.c5 = new child5(); }
static void Main(string[] args) { childclass ch = new childclass(); ch.sum(); child2 ch2 = new child2(); ch2.message(); child3 ch3 = new child3(); ch3.message(); }