static void Main(string[] args) { Child1 childObj1 = new Child1(); childObj1.setbal(120000);//child1 class method childObj1.setdata(100, 5, 4500000); childObj1.getdata(); Console.WriteLine("Child have {0} Rs.", childObj1.getbal()); childObj1.combineBal(); Console.ReadKey(); }