Static and instance methods
class MyClass {
static int x;
int y;
static void myMethod1()
{
x = 5; // this is OK
y = 7; // This will be an error
}
void myMethod2()
{
x = 5;
y = 7; // these are both OK
}
}