static void Main(string[] args) { mest temp; temp = new city(); (temp as city).nas = "asdasd"; Console.WriteLine(temp.getClass()); temp = new mega(); Console.WriteLine(temp.getClass()); temp = new region(); Console.WriteLine(temp.getClass()); }
static void Main(string[] args) { city a = new city(); FTest ReadGeoF = new FTest(a.readGeo); mega b = new mega(); STest ReadGeoS = new STest(b.readGeo); STest ReadNameS = new STest(b.readName); region c = new region(); TTest ReadGeoT = new TTest(c.readGeo); TTest ReadNameT = new TTest(c.readName); TTest Sum; Sum = ReadGeoT + ReadNameT; }