TheBulgarianWolf

OOP Basic Object

Jul 1st, 2021
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.27 KB | None | 0 0
  1. class Point{
  2.     public int x;
  3.     public int y;
  4. }
  5.  
  6. class EntryPoint{
  7.     static void Main()
  8.     {
  9.         Point point = new Point();
  10.         point.x = 5;
  11.         point.y = 6;
  12.         System.Console.WriteLine(point.x);
  13.         System.Console.WriteLine(point.y);
  14.     }
  15. }
Add Comment
Please, Sign In to add comment