Alright. So with c# we have SINGULAR class inheritance, correct? But we can have infinite Interfaces. I don't get this because when I inheret like so (I'm doing this right, Right?)
class Player : Zombie_Game.Variables
{
}
and in my Variables class I have this...
class Variables
{
int x = 4;
int y = 9;
}
If it does what I think it does (Lets me use everything in Variables in Player class)
why can't I call x and use it? Instead I have to create an instance of it (If thats the correct term for it) and put Variables.X to use x. Why does this happen? Can't I just use put x when I wan't to use x?