static void Main(string[] args) { Class1 obj = new Class1(); Class12 obj2 = new Class12(); obj2.details(); obj.show(); }