Advertisement
Guest User

Untitled

a guest
Jan 27th, 2020
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.46 KB | None | 0 0
  1. using System;
  2.  
  3. namespace task4
  4. {
  5.     public class Point
  6.     {
  7.         private int x;
  8.         private int y;
  9.  
  10.         public Point(int x, int y)
  11.         {
  12.             this.x = x;
  13.             this.y = y;
  14.         }
  15.  
  16.         public int X
  17.         {
  18.             get
  19.             {
  20.                 return x;
  21.             }
  22.         }
  23.         public int Y
  24.         {
  25.             get
  26.             {
  27.                 return y;
  28.             }
  29.         }
  30.     }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement