Difference Between Quarry And Open Pit Mine

What is the difference between an open pit mine, a quarry, and an underground mine with shafts 9027511.