What is the difference between concealer, contour, primer and foundation?

And when you apply, doesn't that get messed/mixed up in some way (by putting layers)? Just wondering

What is the difference between concealer, contour, primer and foundation?
Post Opinion