Question: are lines even or odd functions?
Answer: The only function which is both even and odd is f(x) = 0, defined for all real numbers. This is just a line which sits on the x-axis. If you count equations which are not a function in terms of y, then x=0 would also be both even and odd, and is just a line on the y-axis.