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); }
public PointValue Add(PointValue p) { return(new PointValue(this.X + p.X, this.Y + p.Y)); }