static void Main(string[] args) { meth2 m2 = new meth2(); int result_m2 = m2.CallFuncsClass(3); Console.WriteLine(result_m2); Console.ReadKey(); }
static void Main(string[] args) { meth1 m1 = new meth1(); meth2 m2 = new meth2(); m2.CallFuncsClass(3); int result_m1 = m1.op1; Console.WriteLine(result_m1); Console.ReadKey(); }