For example:
using System;
class Ball
{
private int x, y;
// Constructor
public Ball(int Temp_X, int Temp_Y)
{
x = Temp_X;
y = Temp_Y;
}
// Destructor
~Ball(){}
// Get X
public int Get_X()
{
return x;
}
}
Just a basic example.