O.k., I'll bite, because throwing snarky comments at arrogant youth has only so much appeal.
Classical mass is a special case of the more general term, known as relativistic mass.
It's special, because it's only applicable to those problems, where the system is not moving at a speed high enough for the relativistic factor to cause noticeable difference in results.
That's why you can only use classical mass(treating it as equal to rest mass of an object), if you are not going to consider speeds approaching c(for V<0.3c the difference is small enough to be neglected, unless you want a very precise answer to the problem at hand).
And that's why, whenever you're going to think of something going real fast, you can't use the classical mass.
Now, relativistic mass is just the rest mass multiplied by the relativistic factor(γ = (1–v^2/c^2)^–1/2), so when you have a particle with no rest mass(a photon), it being multiplied by that factor still nets 0.
Also, any object with non-zero rest mass gets more massive as it approaches c, asymptotically approaching infinity at V=c.
Once again: you can't freely choose to use classical or relativistic mass on a whim. You can only make your life(i.e.calculations) easier by disregarding the γ factor, if your velocities are also classical, and even then you should keep in mind that you're sacrificing some precision there.