Can a linear function have zero slope?

Can we say function $$y=f(x)=10$$ is a linear function? Can a linear function have zero slope?


By definition, a linear function is a polynomial of degree one or less, including the zero polynomial. $f(x)=10$ has degree $0$, so it is linear.