예제 #1
0
        static void Main(string[] args)
        {
            PointValue pv = new PointValue();
            PointValue pv1;
            Object     o = pv;

            PointValue pv3 = (PointValue)o;



            //PointValue pv2 = new PointValue(2,3);

            //PointRef pr = new PointRef();

            //ShowObject(pr);
            //ShowObject(pv);
        }
예제 #2
0
 public PointValue Add(PointValue p)
 {
     return(new PointValue(this.X + p.X, this.Y + p.Y));
 }