Consider some quadratic function $y=ax^2 + bx + c$. Consider changing the function such that $z = 0x^3 + ax^2 + bx^2 + c$. Can it be said that $y = z$? Can it be said that $z$ is a cubic function, since there is a term to the power of $3$, or since that entire term evaluates to $0$, is it still quadratic?
I would think that since the two functions ought to have the same codomain and graph, they can be said to be equal, which therefore means that $z$ must be a quadratic function since $y$ certainly is.
The degree of a polynomial is defined as the highest power of the variable used with a non-zero coefficient. Both of $x$ and $y$ then have degree 2, so are said to be quadratic functions. Also $y=z$ as the difference of $y$ and $z$ is zero.