Back to slide -- Keyboard shortcut: 'u'        next -- Keyboard shortcut: 'n'          point/struct-mutable-1/Point.cs - Struct Point.Lecture 4 - slide 10 : 29
Program 1

using System;

public struct Point {
  private double x, y;

  public Point(double x, double y){
   this.x = x; this.y = y;
  }

  public double Getx (){
    return x;
  }

  public double Gety (){
    return y;
  }

  public void Move(double dx, double dy){
    x += dx; y += dy;
  }

  public override string ToString(){
    return "Point: " + "(" + x + "," + y + ")" + ".";
  }
}