enum Direction{
	NORTH {
		@Override
		public void move(){
			System.out.println("Move up (y + 1)");
		}
	},
	SOUTH {
		@Override
		public void move(){
			System.out.println("Move down (y - 1)");
		}
	},
	EAST {
		@Override
		public void move(){
			System.out.println("Move right (x + 1)");
		}
	},
	WEST {
		@Override
		public void move(){
			System.out.println("Move left (x - 1)");
		}
	};

	public abstract void move(); // this method needs to be overridden by the enum constants
}
class Ideone
{
	public static void main (String[] args)
	{
		Direction d = Direction.NORTH;
		d.move();
	}
}