# Ether
interface Point {
X, Y
}
func SetX(self: Point, newX) => self.X = newX
func SetY(self: Point, newY) => self.Y = newY
func Main() {
point: Point
point.SetX(10) # Ahora point.X es igual a 10.
point.SetY(20) # Ahora point.Y es igual a 20.
}
// C# - J... ava
class Point {
public int X;
public int Y;
public void SetX(int newX) => this.X = newX;
public void SetY(int newY) => this.Y = newY
}
public void Main() {
Point point = new Point();
point.SetX(10);
point.SetY(20);