Advertisement
Guest User

Untitled

a guest
Feb 20th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.43 KB | None | 0 0
  1. class Point {
  2.  
  3.     private double _x;
  4.     private double _y;
  5.  
  6.     public Point(double x, double y) {
  7.         this._x = x;
  8.         this._y = y;
  9.     }
  10.  
  11.     public Point() {
  12.         this._x = 0;
  13.         this._y = 0;
  14.     }
  15.  
  16.     public double XPoint
  17.     {
  18.          get { return _x; }
  19.          set { _x = value; }
  20.     }
  21.  
  22.     public double YPoint
  23.     {
  24.          get { return _y; }
  25.          set { _y = value; }
  26.     }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement