예제 #1
0
        public ObjMethod GetObj(ObjMethod m)
        {
            ObjMethod obj = new ObjMethod();

            obj.s = s + m.s;
            return(obj);
        }
예제 #2
0
        static void Main()
        {
            ObjMethod ob2 = new ObjMethod("nice");
            ObjMethod ob1 = new ObjMethod("to");
            ObjMethod ob3 = ob2.GetObj(ob1);

            ob2.display();
            ob3.display();
        }